Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/linux/lockd/share.h |
| 3 | * |
| 4 | * DOS share management for lockd. |
| 5 | * |
| 6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> |
| 7 | */ |
| 8 | |
| 9 | #ifndef LINUX_LOCKD_SHARE_H |
| 10 | #define LINUX_LOCKD_SHARE_H |
| 11 | |
| 12 | /* |
| 13 | * DOS share for a specific file |
| 14 | */ |
| 15 | struct nlm_share { |
| 16 | struct nlm_share * s_next; /* linked list */ |
| 17 | struct nlm_host * s_host; /* client host */ |
| 18 | struct nlm_file * s_file; /* shared file */ |
| 19 | struct xdr_netobj s_owner; /* owner handle */ |
| 20 | u32 s_access; /* access mode */ |
| 21 | u32 s_mode; /* deny mode */ |
| 22 | }; |
| 23 | |
Al Viro | 52921e0 | 2006-10-19 23:28:46 -0700 | [diff] [blame] | 24 | __be32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | struct nlm_args *); |
Al Viro | 52921e0 | 2006-10-19 23:28:46 -0700 | [diff] [blame] | 26 | __be32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | struct nlm_args *); |
Olaf Kirch | f2af793 | 2006-10-04 02:15:59 -0700 | [diff] [blame] | 28 | void nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, |
| 29 | nlm_host_match_fn_t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
| 31 | #endif /* LINUX_LOCKD_SHARE_H */ |