diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-04-04 23:11:29 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-04 23:11:29 -0800 |
| commit | 1cc96096036d4004a90eedbcadf73f6fa27708a0 (patch) | |
| tree | 904cbc28dc0da0d2265256aaf2d2cec432aed5e8 /include/linux/sunrpc | |
| parent | 09739cf73039ac1b70a071625174a8b3e7c636ae (diff) | |
[PATCH] PATCH 3 of 4 : knfsd : Store the fsid in the returned attributes instead of the device number
When a filesystem is exported with fsid= we should use that
fsid instead of the i_dev number when returning NFS attributes,
so that there is no chance of clients that depend on the filesys
id in the attributes getting confused by device numbers changing.
We only do this if the reference filehandle uses fsid to identify
the filesystem, so that a server can be converted from non-fsid= to
using fsid= without confusing active clients.
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 2d2461bb38c8..71054b826df2 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -123,6 +123,10 @@ struct svc_rqst { /* Catering to nfsd */ struct svc_client * rq_client; /* RPC peer info */ struct svc_cacherep * rq_cacherep; /* cache info */ + struct knfsd_fh * rq_reffh; /* Referrence filehandle, used to + * determine what device number + * to report (real or virtual) + */ wait_queue_head_t rq_wait; /* synchronozation */ }; |
