diff options
| author | Andy Adamson <andros@netapp.com> | 2011-07-30 20:52:35 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-31 12:18:15 -0400 |
| commit | 7f11d8d38d64739e190581e015a2a2730ff54e2a (patch) | |
| tree | 449178cb7ef4e4675cab239400f6b4e43ac83980 /include/linux | |
| parent | 3557c6c3be5b2ca0b11365db7f8a813253eb520b (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 'include/linux')
| -rw-r--r-- | include/linux/nfs4.h | 1 | ||||
| -rw-r--r-- | include/linux/nfs_xdr.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index a3c4bc800dce..76f99e8714f3 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -566,6 +566,7 @@ enum { | |||
| 566 | NFSPROC4_CLNT_SECINFO_NO_NAME, | 566 | NFSPROC4_CLNT_SECINFO_NO_NAME, |
| 567 | NFSPROC4_CLNT_TEST_STATEID, | 567 | NFSPROC4_CLNT_TEST_STATEID, |
| 568 | NFSPROC4_CLNT_FREE_STATEID, | 568 | NFSPROC4_CLNT_FREE_STATEID, |
| 569 | NFSPROC4_CLNT_GETDEVICELIST, | ||
| 569 | }; | 570 | }; |
| 570 | 571 | ||
| 571 | /* nfs41 types */ | 572 | /* nfs41 types */ |
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index feb312716c07..21f333eae3c8 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
| @@ -235,6 +235,17 @@ struct nfs4_layoutget { | |||
| 235 | gfp_t gfp_flags; | 235 | gfp_t gfp_flags; |
| 236 | }; | 236 | }; |
| 237 | 237 | ||
| 238 | struct nfs4_getdevicelist_args { | ||
| 239 | const struct nfs_fh *fh; | ||
| 240 | u32 layoutclass; | ||
| 241 | struct nfs4_sequence_args seq_args; | ||
| 242 | }; | ||
| 243 | |||
| 244 | struct nfs4_getdevicelist_res { | ||
| 245 | struct pnfs_devicelist *devlist; | ||
| 246 | struct nfs4_sequence_res seq_res; | ||
| 247 | }; | ||
| 248 | |||
| 238 | struct nfs4_getdeviceinfo_args { | 249 | struct nfs4_getdeviceinfo_args { |
| 239 | struct pnfs_device *pdev; | 250 | struct pnfs_device *pdev; |
| 240 | struct nfs4_sequence_args seq_args; | 251 | struct nfs4_sequence_args seq_args; |
