linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 0/3] NFSD patches to support junctions
Date: Fri, 9 Sep 2011 08:06:28 -0400	[thread overview]
Message-ID: <20110909120628.GJ17215@fieldses.org> (raw)
In-Reply-To: <4724D1E3-1A56-4D0A-8A3F-64A5F0C1F5FC@oracle.com>

On Thu, Sep 08, 2011 at 09:47:50PM -0700, Chuck Lever wrote:
> 
> On Sep 8, 2011, at 12:21 PM, J. Bruce Fields wrote:
> 
> > On Thu, Sep 08, 2011 at 12:03:49PM -0700, Chuck Lever wrote:
> >> 
> >> On Sep 8, 2011, at 11:24 AM, J. Bruce Fields wrote:
> >> 
> >>> On Thu, Sep 08, 2011 at 01:59:46PM -0400, bfields wrote:
> >>>> On Fri, Sep 02, 2011 at 12:38:13PM -0400, Chuck Lever wrote:
> >>>>> Sometime soon we are going to have easy-to-install user space FedFS
> >>>>> components.  Here are kernel patches needed to make server-side FedFS
> >>>>> support work.  Please consider these for the 3.2 kernel.
> >>>>> 
> >>>>> The third patch introduces a potentially expensive check to see if
> >>>>> a junction has been encountered during a mountpoint lookup.  An object
> >>>>> is a junction iff it has the requisite set of extended attributes.
> >>>>> However, reading an extended attribute is expensive on some file
> >>>>> systems.
> >>>>> 
> >>>>> To mitigate the cost of this check, junctions always have their sticky
> >>>>> bit set.  The expensive extended attribute part of the junction test
> >>>>> is done only if the sticky bit is present.
> >>>>> 
> >>>>> Note that today junctions are directories, but someday symlinks might
> >>>>> also act as junctions (for SMB2 support).  And very few files have the
> >>>>> sticky bit set.  So we avoid doing a directory test here.
> >>>>> 
> >>>>> Also, junctions ostensibly have all zero mode bits to hide their local
> >>>>> contents.  I don't think the kernel needs to be concerned about the
> >>>>> permissions as long as the sticky bit is set.  This allows some
> >>>>> flexibility in how junctions are represented.  However, Jeff thinks
> >>>>> that having nfsd4_is_junction() also consider mode bits would make the
> >>>>> expensive part of this test still less frequent.
> >>>>> 
> >>>>> Any thoughts about this?
> >>>> 
> >>>> Hm, right, a sticky bit set on a directory is a normal thing.  I thought
> >>>> Trond's original idea was to check for the sticky bit and not
> >>>> executable?  Which is a pointless combination so should be very rare.
> >>>> 
> >>>> On a typical system maybe directories with the sticky bit are normally
> >>>> somewhat rare, but that's a question of policy and there could be cases
> >>>> where it's common.
> >>> 
> >>> Except for that and the one gripe about an error return, it looks fine
> >>> to me.
> >> 
> >> Noted.  I can repost these with requested fixes in a day or two.
> >> 
> >>> Remind me where the corresponding userland code is?
> >> 
> >> http://oss.oracle.com/projects/fedfs-utils
> > 
> > I can find gitweb, but not a git url to clone from.
> 
> Try
> 
>   git clone git://oss.oracle.com/git/cel/fedfs-utils.git

Got it, thanks!

(There should be some way to configure your gitweb installation so it
includes that.)

--b.

      reply	other threads:[~2011-09-09 12:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02 16:38 [PATCH 0/3] NFSD patches to support junctions Chuck Lever
2011-09-02 16:38 ` [PATCH 1/3] NFSD: Cleanup for nfsd4_path() Chuck Lever
2011-09-08 18:20   ` J. Bruce Fields
2011-09-02 16:38 ` [PATCH 2/3] NFSD: Remove the ex_pathname field from struct svc_export Chuck Lever
2011-09-02 16:38 ` [PATCH 3/3] NFSD: Add a cache for fs_locations information Chuck Lever
2011-09-08 18:21   ` J. Bruce Fields
2011-09-08 18:59     ` Chuck Lever
2011-09-08 17:59 ` [PATCH 0/3] NFSD patches to support junctions J. Bruce Fields
2011-09-08 18:24   ` J. Bruce Fields
2011-09-08 19:03     ` Chuck Lever
2011-09-08 19:21       ` J. Bruce Fields
2011-09-09  4:47         ` Chuck Lever
2011-09-09 12:06           ` J. Bruce Fields [this message]

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=20110909120628.GJ17215@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@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).