From: Rick Macklem <rmacklem@uoguelph.ca>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>,
Christopher T Vogan <cvogan@us.ibm.com>,
Neil Brown <neilb@suse.de>,
linux-nfs@vger.kernel.org, nfsv4 list <nfsv4@ietf.org>,
Tom Haynes <Tom.Haynes@netapp.com>
Subject: Re: [nfsv4] What is NFSv4 READDIR doesn't return a filehandle....
Date: Thu, 21 Mar 2013 10:15:47 -0400 (EDT) [thread overview]
Message-ID: <721420190.6245.1363875347135.JavaMail.root@erie.cs.uoguelph.ca> (raw)
In-Reply-To: <20130321133713.GB27838@fieldses.org>
J. Bruce Fields wrote:
> On Wed, Mar 20, 2013 at 09:41:40PM -0400, Rick Macklem wrote:
> > Well, I don't see any difference between a mandatory attribute and a
> > recommended attribute that the server claims to support via the
> > supported_attributes attribute.
> >
> > I do believe that the server can choose not to return all of the
> > mandatory and supported recommended attributes in the readdir reply.
> > (If not, why have a bitmap of returned attributes?)
> >
> > One example here is the mounted_on_fileid, which some servers choose
> > to only "support" for server mount points. (The FreeBSD server
> > returns
> > this attribute for all file handles, setting it to the same value as
> > fileid for non-mount-points, but I am pretty sure some other servers
> > do not return mounted_on_fileid for non-mount-points.)
>
> That doesn't sound like traditional unix readdir behavior, and isn't
> the
> behavior described by the spec; looking at 5661 5.8.2.23 (haven't
> compared other rfcs):
>
> "If the server detects that there is no mounted point at the
> target file object, then the value for mounted_on_fileid that it
> returns is the same as that of the fileid attribute."
>
> Also, the supported_attrs attribute is a filesystem-wide attribute. I
> don't think we generally allow attributes to vary between "supported"
> and "unsupported" on a single filesystem.
>
> --b.
Well, I'm pretty sure some server did (maybe it has been changed more
recently) would only return mounted_on_fileid in the Readdir reply
if it was at a mount point.
I remember because it broke the FreeBSD client and I had to tweak
the code.
I'll try and remember to stick something in the FreeBSD client to
spot this for the next Bakeathon.
rick
next prev parent reply other threads:[~2013-03-21 14:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 22:40 What is NFSv4 READDIR doesn't return a filehandle Christopher T Vogan
2013-03-20 23:48 ` Myklebust, Trond
2013-03-20 23:53 ` Haynes, Tom
2013-03-21 0:33 ` Myklebust, Trond
2013-03-21 1:41 ` [nfsv4] " Rick Macklem
2013-03-21 2:04 ` Myklebust, Trond
2013-03-21 2:37 ` Myklebust, Trond
2013-03-21 3:38 ` Rick Macklem
2013-03-21 4:04 ` Myklebust, Trond
2013-03-21 13:37 ` J. Bruce Fields
2013-03-21 14:15 ` Rick Macklem [this message]
2013-03-21 4:04 ` Rick Macklem
2013-03-21 13:47 ` J. Bruce Fields
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=721420190.6245.1363875347135.JavaMail.root@erie.cs.uoguelph.ca \
--to=rmacklem@uoguelph.ca \
--cc=Tom.Haynes@netapp.com \
--cc=Trond.Myklebust@netapp.com \
--cc=bfields@fieldses.org \
--cc=cvogan@us.ibm.com \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=nfsv4@ietf.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).