patch 09/38: CLIENT: change fsid in 'struct nfs_fattr'

From: Kendrick M. Smith (kmsmith@umich.edu)
Date: Tue Aug 13 2002 - 17:59:45 EST


In NFSv4, an fsid is a 64-bit major number together with a 64-bit
minor number. In previous versions, an fsid is a single number.
This patch changes 'struct nfs_fattr' accordingly.

--- old/include/linux/nfs_xdr.h Mon Jul 29 22:59:17 2002
+++ new/include/linux/nfs_xdr.h Mon Jul 29 23:12:45 2002
@@ -22,12 +22,19 @@ struct nfs_fattr {
                 } nfs3;
         } du;
         __u32 rdev;
- __u64 fsid;
+ union {
+ __u64 nfs3; /* also nfs2 */
+ struct {
+ __u64 major;
+ __u64 minor;
+ } nfs4;
+ } fsid_u;
         __u64 fileid;
         __u64 atime;
         __u64 mtime;
         __u64 ctime;
 };
+#define fsid fsid_u.nfs3

 #define NFS_ATTR_WCC 0x0001 /* pre-op WCC data */
 #define NFS_ATTR_FATTR 0x0002 /* post-op attributes */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:35 EST