[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC063CF8E604@IT-1874.Isys.com>
Date: Mon, 23 Apr 2012 13:45:08 -0400
From: Peter Staubach <pstaubach@...grid.com>
To: Miklos Szeredi <miklos@...redi.hu>,
Chuck Lever <chuck.lever@...cle.com>
CC: "J. Bruce Fields" <bfields@...ldses.org>,
Jeff Layton <jlayton@...hat.com>,
Malahal Naineni <malahal@...ibm.com>,
Steve Dickson <SteveD@...hat.com>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linux-nfs@...r.kernel.org" <linux-nfs@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>,
"hch@...radead.org" <hch@...radead.org>,
"michael.brantley@...haw.com" <michael.brantley@...haw.com>,
"sven.breuner@...m.fraunhofer.de" <sven.breuner@...m.fraunhofer.de>,
"trond.myklebust@....uio.no" <trond.myklebust@....uio.no>,
"rees@...ch.edu" <rees@...ch.edu>
Subject: RE: [PATCH RFC v3] vfs: make fstatat retry once on ESTALE errors
from getattr call
The situation of stale current directories and/or stale root directories for mounted file systems is handled. In these cases, recovery is not possible and so, are not looped for.
Thanx...
ps
-----Original Message-----
From: Miklos Szeredi [mailto:miklos@...redi.hu]
Sent: Monday, April 23, 2012 11:24 AM
To: Chuck Lever
Cc: J. Bruce Fields; Jeff Layton; Malahal Naineni; Steve Dickson; linux-fsdevel@...r.kernel.org; linux-nfs@...r.kernel.org; linux-kernel@...r.kernel.org; viro@...iv.linux.org.uk; hch@...radead.org; michael.brantley@...haw.com; sven.breuner@...m.fraunhofer.de; Peter Staubach; trond.myklebust@....uio.no; rees@...ch.edu
Subject: Re: [PATCH RFC v3] vfs: make fstatat retry once on ESTALE errors from getattr call
Chuck Lever <chuck.lever@...cle.com> writes:
> On Apr 23, 2012, at 10:51 AM, Miklos Szeredi wrote:
>
>> "J. Bruce Fields" <bfields@...ldses.org> writes:
>>
>>>
>>> I also wonder whether it would be making too many assumptions about
>>> the server or filesystem: just because ordinary posix interfaces
>>> don't allow atomic replacement of a whole directory tree doesn't
>>> mean the server might not have some way to do it.
>>
>> Exactly because posix limits the atomic replacement to empty
>> directories is that this feature is not useful and is why linux can
>> get away with the dead directory behavior in this case. And thinking
>> about fixing this in NFS is completely pointless since no one will
>> rely on the atomic replacement behavior. Fixing local filesystems is
>> also pointless for the same reason.
>>
>> Atomic replacement of whole directory trees would indeed be more
>> useful, but it's highly unlikely to be used anywhere since
>> applications relying on this feature would be limited to special filesystems that allow this.
>
> The cases I can think of have to do with file system restore, file
> system and block device snapshots, and so on. This type of use case
> may not practical on today's Linux server, but they are a reality for
> anyone using high-end NFS storage.
Problem with this is: if some directory file handles are stale (e.g. due to directories being removed, recreated, moved around) and on the client there are cwd-s referring to these handles, then they are going to become stale no matter what you do, even if the same path does exist after the restore on the server.
Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists