[ale] inode change after vi a file ?

Chris Ricker kaboom at oobleck.net
Thu Mar 30 15:37:51 EST 2006


On Thu, 30 Mar 2006, Jerry Yu wrote:

> without agressive inode recycling, one'd run out of inodes at some point too
> ...

Why? It frees up the old inode

foo is inode 20
you edit with vim, you're using inode 20 for foo and inode 19 for temp
you save, inode 20 is unlinked, inode 19 is renamed foo, inode 20 is free

> I see it as a bug personally. wonder whether/how oowriter and nano do 
> reliable atomic writes. also wonder how vi on Solaris does it.

They don't

later,
chris



More information about the Ale mailing list