Re: [patch 3/5] VFS: pass open file to ->xattr()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hch@...>
Cc: <trond.myklebust@...>, <miklos@...>, <hch@...>, <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Friday, September 21, 2007 - 10:59 am

> On Fri, Sep 21, 2007 at 10:32:31AM -0400, Trond Myklebust wrote:

What I'm saying is that read and write are _no_more_ related to the
file than fstat.  Read/write operate on inode data, fstat operates on
inode metadata.

OK, read/write have a position state in the open file, but that is
something the filesystem should _never_ touch anyway, so it's
irrelevant to the discussion.

The fact is, if the filesystem uses a stateful open API, which defines
an fstat() operation, it can be useful to use that instead of the
plain stat().  But that is only possible if the VFS supplies the open
file, otherwise there will be just "hunting around" for suitable open
files, or "sillyrenaming".  None of which is desirable.

Miklos
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 3/5] VFS: pass open file to -&gt;xattr(), Miklos Szeredi, (Fri Sep 21, 8:23 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Andreas Dilger, (Fri Sep 21, 2:39 pm)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Christoph Hellwig, (Fri Sep 21, 8:43 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Miklos Szeredi, (Fri Sep 21, 9:00 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Christoph Hellwig, (Fri Sep 21, 9:06 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Miklos Szeredi, (Fri Sep 21, 9:16 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Trond Myklebust, (Fri Sep 21, 10:32 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Miklos Szeredi, (Fri Sep 21, 10:43 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Christoph Hellwig, (Fri Sep 21, 10:34 am)
Re: [patch 3/5] VFS: pass open file to ->xattr(), Miklos Szeredi, (Fri Sep 21, 10:59 am)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Andreas Dilger, (Fri Sep 21, 2:44 pm)
Re: [patch 3/5] VFS: pass open file to -&gt;xattr(), Miklos Szeredi, (Fri Sep 21, 5:15 pm)