aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 8640607d6a00..90ee21a07b3e 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -121,6 +121,25 @@ const u32 nfs4_fsinfo_bitmap[2] = { FATTR4_WORD0_MAXFILESIZE
121 0 121 0
122}; 122};
123 123
124const u32 nfs4_fs_locations_bitmap[2] = {
125 FATTR4_WORD0_TYPE
126 | FATTR4_WORD0_CHANGE
127 | FATTR4_WORD0_SIZE
128 | FATTR4_WORD0_FSID
129 | FATTR4_WORD0_FILEID
130 | FATTR4_WORD0_FS_LOCATIONS,
131 FATTR4_WORD1_MODE
132 | FATTR4_WORD1_NUMLINKS
133 | FATTR4_WORD1_OWNER
134 | FATTR4_WORD1_OWNER_GROUP
135 | FATTR4_WORD1_RAWDEV
136 | FATTR4_WORD1_SPACE_USED
137 | FATTR4_WORD1_TIME_ACCESS
138 | FATTR4_WORD1_TIME_METADATA
139 | FATTR4_WORD1_TIME_MODIFY
140 | FATTR4_WORD1_MOUNTED_ON_FILEID
141};
142
124static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, 143static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry,
125 struct nfs4_readdir_arg *readdir) 144 struct nfs4_readdir_arg *readdir)
126{ 145{
@@ -3594,6 +3613,7 @@ int nfs4_proc_fs_locations(struct inode *dir, struct dentry *dentry,
3594 dprintk("%s: start\n", __FUNCTION__); 3613 dprintk("%s: start\n", __FUNCTION__);
3595 fs_locations->fattr.valid = 0; 3614 fs_locations->fattr.valid = 0;
3596 fs_locations->server = server; 3615 fs_locations->server = server;
3616 fs_locations->nlocations = 0;
3597 status = rpc_call_sync(server->client, &msg, 0); 3617 status = rpc_call_sync(server->client, &msg, 0);
3598 dprintk("%s: returned status = %d\n", __FUNCTION__, status); 3618 dprintk("%s: returned status = %d\n", __FUNCTION__, status);
3599 return status; 3619 return status;