diff options
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 47037d9521cb..a2bf6914ff1b 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _LINUX_NFS_XDR_H | 2 | #define _LINUX_NFS_XDR_H |
3 | 3 | ||
4 | #include <linux/sunrpc/xprt.h> | 4 | #include <linux/sunrpc/xprt.h> |
5 | #include <linux/nfsacl.h> | ||
5 | 6 | ||
6 | struct nfs4_fsid { | 7 | struct nfs4_fsid { |
7 | __u64 major; | 8 | __u64 major; |
@@ -326,6 +327,20 @@ struct nfs_setattrargs { | |||
326 | const u32 * bitmask; | 327 | const u32 * bitmask; |
327 | }; | 328 | }; |
328 | 329 | ||
330 | struct nfs_setaclargs { | ||
331 | struct nfs_fh * fh; | ||
332 | size_t acl_len; | ||
333 | unsigned int acl_pgbase; | ||
334 | struct page ** acl_pages; | ||
335 | }; | ||
336 | |||
337 | struct nfs_getaclargs { | ||
338 | struct nfs_fh * fh; | ||
339 | size_t acl_len; | ||
340 | unsigned int acl_pgbase; | ||
341 | struct page ** acl_pages; | ||
342 | }; | ||
343 | |||
329 | struct nfs_setattrres { | 344 | struct nfs_setattrres { |
330 | struct nfs_fattr * fattr; | 345 | struct nfs_fattr * fattr; |
331 | const struct nfs_server * server; | 346 | const struct nfs_server * server; |
@@ -354,6 +369,20 @@ struct nfs_readdirargs { | |||
354 | struct page ** pages; | 369 | struct page ** pages; |
355 | }; | 370 | }; |
356 | 371 | ||
372 | struct nfs3_getaclargs { | ||
373 | struct nfs_fh * fh; | ||
374 | int mask; | ||
375 | struct page ** pages; | ||
376 | }; | ||
377 | |||
378 | struct nfs3_setaclargs { | ||
379 | struct inode * inode; | ||
380 | int mask; | ||
381 | struct posix_acl * acl_access; | ||
382 | struct posix_acl * acl_default; | ||
383 | struct page ** pages; | ||
384 | }; | ||
385 | |||
357 | struct nfs_diropok { | 386 | struct nfs_diropok { |
358 | struct nfs_fh * fh; | 387 | struct nfs_fh * fh; |
359 | struct nfs_fattr * fattr; | 388 | struct nfs_fattr * fattr; |
@@ -477,6 +506,15 @@ struct nfs3_readdirres { | |||
477 | int plus; | 506 | int plus; |
478 | }; | 507 | }; |
479 | 508 | ||
509 | struct nfs3_getaclres { | ||
510 | struct nfs_fattr * fattr; | ||
511 | int mask; | ||
512 | unsigned int acl_access_count; | ||
513 | unsigned int acl_default_count; | ||
514 | struct posix_acl * acl_access; | ||
515 | struct posix_acl * acl_default; | ||
516 | }; | ||
517 | |||
480 | #ifdef CONFIG_NFS_V4 | 518 | #ifdef CONFIG_NFS_V4 |
481 | 519 | ||
482 | typedef u64 clientid4; | 520 | typedef u64 clientid4; |
@@ -667,6 +705,7 @@ struct nfs_rpc_ops { | |||
667 | int version; /* Protocol version */ | 705 | int version; /* Protocol version */ |
668 | struct dentry_operations *dentry_ops; | 706 | struct dentry_operations *dentry_ops; |
669 | struct inode_operations *dir_inode_ops; | 707 | struct inode_operations *dir_inode_ops; |
708 | struct inode_operations *file_inode_ops; | ||
670 | 709 | ||
671 | int (*getroot) (struct nfs_server *, struct nfs_fh *, | 710 | int (*getroot) (struct nfs_server *, struct nfs_fh *, |
672 | struct nfs_fsinfo *); | 711 | struct nfs_fsinfo *); |
@@ -713,6 +752,7 @@ struct nfs_rpc_ops { | |||
713 | int (*file_open) (struct inode *, struct file *); | 752 | int (*file_open) (struct inode *, struct file *); |
714 | int (*file_release) (struct inode *, struct file *); | 753 | int (*file_release) (struct inode *, struct file *); |
715 | int (*lock)(struct file *, int, struct file_lock *); | 754 | int (*lock)(struct file *, int, struct file_lock *); |
755 | void (*clear_acl_cache)(struct inode *); | ||
716 | }; | 756 | }; |
717 | 757 | ||
718 | /* | 758 | /* |
@@ -732,4 +772,7 @@ extern struct rpc_version nfs_version2; | |||
732 | extern struct rpc_version nfs_version3; | 772 | extern struct rpc_version nfs_version3; |
733 | extern struct rpc_version nfs_version4; | 773 | extern struct rpc_version nfs_version4; |
734 | 774 | ||
775 | extern struct rpc_version nfsacl_version3; | ||
776 | extern struct rpc_program nfsacl_program; | ||
777 | |||
735 | #endif | 778 | #endif |