Re: Should exportfs/mountd cope with case-insensitive directory names.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 04, 2014 at 09:13:24AM +1100, NeilBrown wrote:
> On Thu, 3 Apr 2014 17:36:10 -0400 "J. Bruce Fields" <bfields@xxxxxxxxxxxx>
> wrote:
> 
> > (BTW:  I also noticed the other day that systemd is calling
> > name_to_handle_at to get a mount id.  Seems like overkill in both
> > cases--shouldn't there be a simpler way to get just the mount id?)
> 
> Yes, it is called "xstat" and is an extensible version of stat which even
> includes a 'query' bitmap to list which things you want.

Yes.

I forget that encoding the filehandle is typically just reading inode
and generation number and encoding the results in a funny way, so it's
not particularly heavy-weight.

But lumping the two together does mean that your request can fail just
because the filesystem doesn't support nfs exports.

> Unfortunately it never made it to mainline.  We should submit a patch to
> systemd to get it to use xstat instead of name_to_handle_at.  That would
> ensure that the kernel implemented it double-quick :-)

Hm....

--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux