Re: [PATCH] Correction to check_filetype()

2007-02-21 Thread Peter Staubach
Kalpak Shah wrote: Hi, If the mode of a directory gets corrupted, check_filetype() makes wrong decisions for all its sub-directories. For example, using debugfs we can corrupt the mode of a directory to 0140755 (i.e. a socket). e2fsck will set the filetype of all its subdirectories as 6 (file

Re: [RFC] [patch 3/3] i_version update for ext4: user interface

2007-01-24 Thread Peter Staubach
J. Bruce Fields wrote: On Tue, Jan 23, 2007 at 11:52:08AM -0700, Andreas Dilger wrote: On Jan 23, 2007 18:24 +0100, Cordenner jean noel wrote: This patch adds a ``st_i_version'' field in the stat structure, and modifies the stat(2) syscall accordingly. Currently the change is only vis

Re: [PATCH] return ENOENT from ext3_link when racing with unlink

2007-01-16 Thread Peter Staubach
Alex Tomas wrote: Peter Staubach (PS) writes: PS> Just out of curosity, what keeps i_nlink from going to 0 immediately PS> after the new test is executed? i_mutex in vfs_link() and vfs_unlink() Ahhh... Okie doke, thanx! ps - To unsubscribe from this list

Re: [PATCH] return ENOENT from ext3_link when racing with unlink

2007-01-16 Thread Peter Staubach
Eric Sandeen wrote: An update from the earlier thread, [PATCH] [RFC] remove ext3 inode from orphan list when link and unlink race I think this is better than the original idea of trying to handle the race; I've seen that the orphan inode list can get corrupted, but there may well be other imp

Re: rfc: [patch] change attribute for ext3

2006-09-14 Thread Peter Staubach
Trond Myklebust wrote: On Wed, 2006-09-13 at 18:42 +0200, Alexandre Ratchov wrote: hello, here is a small patch that adds the "change attribute" for ext3 file-systems; the change attribute is a simple counter that is reset to zero on inode creation and that is incremented every time the in