From: Matthew Wilcox <matthew@wil.cx>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: hch@infradead.org, trond.myklebust@fys.uio.no,
adilger@clusterfs.com, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: [patch 1/2] VFS: new fgetattr() file operation
Date: Mon, 24 Sep 2007 07:16:15 -0600 [thread overview]
Message-ID: <20070924131615.GN10625@parisc-linux.org> (raw)
In-Reply-To: <E1IZndW-0003uI-00@dorka.pomaz.szeredi.hu>
On Mon, Sep 24, 2007 at 03:06:06PM +0200, Miklos Szeredi wrote:
> A file isn't deleted while there are still links or open files
> refering to it. So getting the attributes for a file with nlink==0 is
> perfectly valid while the file is still open.
Is it? Why not just pretend that the attributes are wiped when the file
is deleted. Effectively, they are, since they can't affect anything.
> If a network filesystem protocol can't handle operations (be it data
> or metadata) on an unlinked file, we must do sillirenaming, so that
> the file is not actually unlinked.
Or you could call getattr right before you unlink and cache the result
in the client.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
next prev parent reply other threads:[~2007-09-24 13:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-24 12:24 [patch 1/2] VFS: new fgetattr() file operation Miklos Szeredi
2007-09-24 12:25 ` [patch 2/2] VFS: allow filesystem to override mknod capability checks Miklos Szeredi
2007-09-24 12:38 ` Christoph Hellwig
2007-09-28 2:40 ` Neil Brown
2007-10-01 18:06 ` Miklos Szeredi
2007-09-24 12:36 ` [patch 1/2] VFS: new fgetattr() file operation Christoph Hellwig
2007-09-24 12:48 ` Miklos Szeredi
2007-09-24 12:59 ` Matthew Wilcox
2007-09-24 13:06 ` Miklos Szeredi
2007-09-24 13:10 ` Christoph Hellwig
2007-09-24 13:18 ` Miklos Szeredi
2007-09-24 13:27 ` Christoph Hellwig
2007-09-24 13:38 ` Miklos Szeredi
2007-09-24 13:16 ` Matthew Wilcox [this message]
2007-09-24 13:21 ` Miklos Szeredi
2007-09-24 13:42 ` Alan Cox
2007-09-24 13:40 ` Miklos Szeredi
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=20070924131615.GN10625@parisc-linux.org \
--to=matthew@wil.cx \
--cc=adilger@clusterfs.com \
--cc=hch@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=trond.myklebust@fys.uio.no \
/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).