linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicholas Miell <nmiell@comcast.net>
To: Peter Staubach <staubach@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
	Bryan Henderson <hbryan@us.ibm.com>, Neil Brown <neilb@suse.de>,
	akpm@osdl.org, andros@citi.umich.edu, bfields@citi.umich.edu,
	Christoph Hellwig <hch@lst.de>,
	linux-fsdevel@vger.kernel.org, Olaf Kirch <okir@suse.de>
Subject: Re: NFS4 crack
Date: Thu, 22 Sep 2005 14:48:10 -0700	[thread overview]
Message-ID: <1127425690.2865.11.camel@entropy> (raw)
In-Reply-To: <4332F2E8.8030107@redhat.com>

On Thu, 2005-09-22 at 14:07 -0400, Peter Staubach wrote:
> Trond Myklebust wrote:
> 
> >to den 22.09.2005 Klokka 13:38 (-0400) skreiv Peter Staubach:
> >  
> >
> >>It seems to me that a "system call" could implemented which would allow
> >>a file to be "opened" via the file handle.
> >>    
> >>
> >
> >Sure, but open alone isn't sufficient. A lot (most?) of the operations
> >involving filehandles are acting on directories.
> >
> >Imagine if someone renames a directory on the server while the NFS
> >server is in the middle of an unlink() operation, for instance.
> >
> 
> Yup, although you could resolve that by introducing a whole set of
> operations which work off of file descriptors, instead of pathnames.
> Then, inside of the kernel, to do the real operation, the file
> descriptor would get turned back into the inode, but without the
> pathname look portion.  Things like funlink(fd, name), fmkdir(fd, name),
> frmdir(fd, name), etc.  Other operating systems have implemented at
> least a subset of these sorts of calls and it gets ugly quickly.

Solaris 10 calls them fchownat(2), fstatat(2), futimesat(2), openat(2),
renameat(2), and unlinkat(2). They mostly exist to support their
extended attributes implementation (hence the "at" postfix, and not to
be confused with Linux's xattrs), but they work for general filesystem
usage.

Besides being an interface to extended attributes and maybe making an
userspace NFSd feasible, they probably also improve filename lookup
performance on sufficiently deep directory heirarchies (think of httpd
opening /var/www/vservers/www.blah.com/html/ and then resolving
everything for that vserver relative to the cached fd).

-- 
Nicholas Miell <nmiell@comcast.net>


  parent reply	other threads:[~2005-09-22 21:49 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-18 10:21 NFS4 crack Christoph Hellwig
2005-09-18 14:36 ` J. Bruce Fields
2005-09-19 10:35   ` Christoph Hellwig
2005-09-19 13:04     ` Anton Altaparmakov
2005-09-19 13:35     ` J. Bruce Fields
2005-09-19 13:39       ` Christoph Hellwig
2005-09-19 14:07         ` J. Bruce Fields
2005-09-19 14:11           ` Christoph Hellwig
2005-09-19 17:13         ` Bryan Henderson
2005-09-19 17:16           ` Randy.Dunlap
2005-09-19 21:57             ` Bryan Henderson
2005-09-19 22:11               ` Randy.Dunlap
2005-09-20  0:17                 ` Bryan Henderson
2005-09-19 18:02           ` Christoph Hellwig
2005-09-19 18:53             ` William A.(Andy) Adamson
2005-09-19 18:59               ` Christoph Hellwig
2005-09-19 22:04               ` Bryan Henderson
2005-09-19 19:01             ` J. Bruce Fields
2005-09-19 19:05               ` Christoph Hellwig
2005-09-19 20:31     ` J. Bruce Fields
2005-09-20 12:49       ` Greg KH
2005-09-20 15:10         ` William A.(Andy) Adamson
2005-09-20 18:37 ` Neil Brown
2005-09-21  7:44   ` Andrew Morton
2005-09-22 20:58     ` William A.(Andy) Adamson
2005-09-21 13:41   ` Trond Myklebust
2005-09-21 14:40   ` J. Bruce Fields
2005-09-22 16:28   ` Bryan Henderson
2005-09-22 16:52     ` Trond Myklebust
2005-09-22 17:38       ` Peter Staubach
2005-09-22 17:52         ` Trond Myklebust
2005-09-22 18:07           ` Peter Staubach
2005-09-22 21:08             ` Bryan Henderson
2005-09-23 12:17               ` Peter Staubach
2005-09-23 20:50                 ` Bryan Henderson
2005-09-23 21:02                   ` NFS4 crack\ Al Viro
2005-09-26 16:29                     ` Bryan Henderson
2005-09-26 17:13                       ` Peter Staubach
2005-09-22 21:48             ` Nicholas Miell [this message]
2005-09-22 22:50             ` NFS4 crack Greg Banks
2005-09-22 21:19         ` Bryan Henderson

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=1127425690.2865.11.camel@entropy \
    --to=nmiell@comcast.net \
    --cc=akpm@osdl.org \
    --cc=andros@citi.umich.edu \
    --cc=bfields@citi.umich.edu \
    --cc=hbryan@us.ibm.com \
    --cc=hch@lst.de \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=okir@suse.de \
    --cc=staubach@redhat.com \
    --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).