aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2011-07-30 20:52:35 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-31 12:18:15 -0400
commit7f11d8d38d64739e190581e015a2a2730ff54e2a (patch)
tree449178cb7ef4e4675cab239400f6b4e43ac83980 /fs/nfs/pnfs.h
parent3557c6c3be5b2ca0b11365db7f8a813253eb520b (diff)
pnfs: GETDEVICELIST
The block driver uses GETDEVICELIST Signed-off-by: Andy Adamson <andros@netapp.com> [pass struct nfs_server * to getdevicelist] [get machince creds for getdevicelist] [fix getdevicelist decode sizing] Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: Jim Rees <rees@umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index b94f874886ca..7074394944a9 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -135,14 +135,26 @@ struct pnfs_device {
135 unsigned int layout_type; 135 unsigned int layout_type;
136 unsigned int mincount; 136 unsigned int mincount;
137 struct page **pages; 137 struct page **pages;
138 void *area;
138 unsigned int pgbase; 139 unsigned int pgbase;
139 unsigned int pglen; 140 unsigned int pglen;
140}; 141};
141 142
143#define NFS4_PNFS_GETDEVLIST_MAXNUM 16
144
145struct pnfs_devicelist {
146 unsigned int eof;
147 unsigned int num_devs;
148 struct nfs4_deviceid dev_id[NFS4_PNFS_GETDEVLIST_MAXNUM];
149};
150
142extern int pnfs_register_layoutdriver(struct pnfs_layoutdriver_type *); 151extern int pnfs_register_layoutdriver(struct pnfs_layoutdriver_type *);
143extern void pnfs_unregister_layoutdriver(struct pnfs_layoutdriver_type *); 152extern void pnfs_unregister_layoutdriver(struct pnfs_layoutdriver_type *);
144 153
145/* nfs4proc.c */ 154/* nfs4proc.c */
155extern int nfs4_proc_getdevicelist(struct nfs_server *server,
156 const struct nfs_fh *fh,
157 struct pnfs_devicelist *devlist);
146extern int nfs4_proc_getdeviceinfo(struct nfs_server *server, 158extern int nfs4_proc_getdeviceinfo(struct nfs_server *server,
147 struct pnfs_device *dev); 159 struct pnfs_device *dev);
148extern int nfs4_proc_layoutget(struct nfs4_layoutget *lgp); 160extern int nfs4_proc_layoutget(struct nfs4_layoutget *lgp);