diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-10-25 21:43:01 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-12-15 14:07:24 -0500 |
commit | 3227fa41abc191384fa81b3bcf52aa7fccb31536 (patch) | |
tree | f50512f2feecfc2fde13b0843cbbfb87728e2442 /fs/nfsd/vfs.c | |
parent | 82ead7fe41da960ed80652d13d5a1072f85f5aca (diff) |
nfsd: filter readdir results in V4ROOT case
As with lookup, we treat every boject as a mountpoint and pretend it
doesn't exist if it isn't exported.
The preexisting code here is confusing, but I haven't yet figured out
how to make it clearer.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index eaf2f0dca12a..a0015a958aef 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -170,7 +170,7 @@ static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, st | |||
170 | * For nfsd purposes, we treat V4ROOT exports as though there was an | 170 | * For nfsd purposes, we treat V4ROOT exports as though there was an |
171 | * export at *every* directory. | 171 | * export at *every* directory. |
172 | */ | 172 | */ |
173 | static int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) | 173 | int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) |
174 | { | 174 | { |
175 | if (d_mountpoint(dentry)) | 175 | if (d_mountpoint(dentry)) |
176 | return 1; | 176 | return 1; |