Bug 178103 - [kernel] [nfs] [patch] Correct support of index files for WebNFS exports
Summary: [kernel] [nfs] [patch] Correct support of index files for WebNFS exports
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 10:50 UTC by Andrey Simonenko
Modified: 2013-09-23 14:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Simonenko 2013-04-24 10:50:00 UTC
RFC 2055 describes index files for WebNFS exports.  The exports(5) manual
page has description of the -index option, but this option does not work
because of mistakes in mountd and kernel part of the NFS server.

The following change:

1. corrects handling of the -index option in usr.sbin/mountd/mountd.c;

2. corrects fetching of the index file in sys/kern/vfs_export.c;

3. corrects locking if a directory does not have the index file in
   sys/nfsserver/nfs_serv.c

This change is for the old NFS server, since new NFS server uses
another API for WebNFS settings and its logic of index files does not
correspond to RFC 2055.

Fix: 

[patch elided - gavin@]
How-To-Repeat: 
Export some file system with options "-public -index 123", then mount it
using NFSv2/3 client and public filehandle.  Create a regular file "123"
in some directory and try to read that directory on a client.  Do the same,
but create directory "123" with some content.  In both cases the content
of a directory with the index file in NFS mounted file system should
be altered.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-05-20 04:29:52 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Involves NFS, but also a kernel and binary change.  Perhaps the NFS 
folks can review.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2013-09-23 14:16:49 UTC
State Changed
From-To: open->closed

PR closed at submitters request.