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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Friday, September 21, 2007 - 6:00 am

> On Fri, Sep 21, 2007 at 02:23:46PM +0200, Miklos Szeredi wrote:

I don't think it's silly.  Read/write get passed the file descriptor,
and it makes a lot of sense, if the filesystem has stateful opens.

Similarly for any fs operation that gets a file descriptor, it makes
sense to pass the relevant open file down into the filesystem.

If you look carefully, the ftrunacate() already does this, becuse
without that it's impossible to implement correct semantics in the
filesystem in some cases.

For other operations it's not impossible, but it would mean more hacks
in the filesystem itself (such as sillyrenaming) that are entirely
unneeded if the file info is available.

I agree, that the xattr API is quite ugly already, but adding one more
argument won't make it all that much worse.

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

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