Re: [Linux-NTFS-Dev] [2.6-GIT] NTFS: Release 2.1.25.

From: Anton Altaparmakov
Date: Mon Oct 31 2005 - 15:05:36 EST


On Mon, 31 Oct 2005, Yuval wrote:
> On 10/31/05, Anton Altaparmakov wrote:
> > What this means is that you can now run your favourite editor on an
> > existing file, e.g. "vim /ntfs/somefile.txt" works fine and you can save
> > your changes. Also things like running OpenOffice and editing existing MS
> > Office documents works. Basically anything that does not need to create
> > temporary files in the same directory as the document should work fine
> > now.
>
> How is possible to use a text editor? Aren't most of them use a temporary file?
> I spent some time ago documenting it in
> http://wiki.linux-ntfs.org/doku.php?id=texteditorpitfall after it came
> up on the linux-ntfs-dev mailing list (long ago). Am I wrong?
>
> I remember Rich writing about some command of vim to disable the
> temporary file feature, but you haven't mentioned that one, so I
> assume it works for you "out-of-the-box".

It does work out of the box when I tried it without any visible errors or
warnings from vim. I assume it either creates a temporary file in /tmp or
the file I was editing was small enough that it could just cache it in
memory or whatever. I don't know what it did, just that it worked fine.

Note that before one of the reasons it was failing was that vim would try
to truncate the file and then write it again and truncate was not
supported. It is supported now so it works.

Certainly normally "vim somefile" creates the file ".somefile.swp" which
it clearly cannot do in this case but obviously it can cope with this.

Perhaps it depends on which editor/version/compile settings maybe even you
have...

All I can say is that both vim and OpenOffice Writer worked fine when I
tried them on SUSE Linux 9.3.

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/