[ale] inode change after vi a file ?

Christopher Fowler cfowler at outpostsentinel.com
Thu Mar 30 14:14:11 EST 2006


Well my guess is this

vi:

open tmpfile
write to tmpfile
close tmpfile

unlink main
open main
write tmp to main
close main.

But I think this is more like it:

open("text", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0664) = 3


On Thu, 2006-03-30 at 13:59 -0500, Geoffrey wrote:
> Jerry Yu wrote:
> > To my surprise, the inode #  changes as long as I do ":w" inside vi.  This
> > holds true on a stock installation of CentOS 4.1 and CentOS 4.3 (equivalent
> > of RHEL 4.* AS) . Anyone knows this is a new feature? If it is a feature,
> > I'd like to learn ways to turn it off.
> > 
> > [zyu at saturn ~]$ date > blah; ls -i blah; vi blah; ls -i blah
> > 688427 blah
> > 692394 blah
> 
> That's interesting.  Same thing here on SuSE.
> 




More information about the Ale mailing list