From: Brian Molnar <brian.molnar@gmail.com>
To: linux-fsdevel@vger.kernel.org
Subject: fgetattr/fsetattr file operation
Date: Wed, 3 Jun 2009 10:32:46 -0700 [thread overview]
Message-ID: <b7ee1e6e0906031032y306d13a9l9b5dfe200f00bd26@mail.gmail.com> (raw)
There was some talk on this list a year or two ago about adding
f_op->fgetattr and f_op->fsetattr methods to the VFS file_operations
struct. For some reason or another, that was dropped on the floor, but
I'd like to pick that back up and discus it once again.
In the file-system I'm working on, there is a distinction between
stat(2)s done against a pathname and fstat(2)s done against an open
file descriptor. The results of the two are expected to differ in some
circumstances. Moreover, I'm building this file-system in FUSE, and
while I've managed to hack the underlying fuse code to achieve this
behavior, it does so at a substantial performance cost. The more
'correct' solution here would be to export an fgetattr/fsetattr
interface at VFS layer, then percolate that change up to the FUSE
interface.
Cheers,
- Brian Molnar
next reply other threads:[~2009-06-03 17:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 17:32 Brian Molnar [this message]
2009-06-04 10:27 ` fgetattr/fsetattr file operation Miklos Szeredi
2009-06-04 17:42 ` Brian Molnar
2009-06-04 19:04 ` Andreas Dilger
2009-06-04 19:46 ` Brian Molnar
2009-06-05 10:35 ` Miklos Szeredi
2009-06-08 1:59 ` Jamie Lokier
2009-06-08 22:26 ` Brian Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7ee1e6e0906031032y306d13a9l9b5dfe200f00bd26@mail.gmail.com \
--to=brian.molnar@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).