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

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

On Fri, 2007-09-21 at 15:16 +0200, Miklos Szeredi wrote:


So why not just add file->f_op->ftruncate() and file->f_op->fstat()?
Most filesystems can trivially redirect these to do_truncate() and their
existing getattr() method. Those, like FUSE, that care can use the hook.
In fact, I think that NFSv4 could also benefit from an ftruncate():
currently we have to hunt around for an open file context for that
particular case.

Trond

-
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 ->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 -&gt;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)