-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acl: add support and helpers to read nfsv4 acls
Signed-off-by: Ronnie Sahlberg <[email protected]>
- Loading branch information
Showing
10 changed files
with
295 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,43 @@ | ||
#include <nfsc/libnfs.h> | ||
|
||
#if defined(WIN32) && defined(libnfs_EXPORTS) | ||
#define EXTERN __declspec( dllexport ) | ||
#else | ||
#ifndef EXTERN | ||
#define EXTERN | ||
#endif | ||
#endif | ||
|
||
/* | ||
* NFSv4 ACL | ||
*/ | ||
/* | ||
* Async nfs4 get acl | ||
* Function returns | ||
* 0 : The command was queued successfully. The callback will be invoked once | ||
* the command completes. | ||
* <0 : An error occured when trying to queue the command. | ||
* The callback will not be invoked. | ||
* | ||
* When the callback is invoked, status indicates the result: | ||
* 0 : Success. | ||
* data is fattr4_acl * | ||
* -errno : An error occured. | ||
* data is the error string. | ||
*/ | ||
EXTERN int nfs4_getacl_async(struct nfs_context *nfs, struct nfsfh *nfsfh, | ||
nfs_cb cb, void *private_data); | ||
|
||
/* | ||
* Sync nfs4 get acl | ||
* Function returns | ||
* 0 : The operation was successful. | ||
* -errno : The command failed. | ||
* | ||
* If the command was successful, the returned data in nfs4acl must be freed | ||
* by calling nfs4_acl_free() | ||
*/ | ||
EXTERN int nfs4_getacl(struct nfs_context *nfs, struct nfsfh *nfsfh, | ||
fattr4_acl *nfs4acl); | ||
|
||
EXTERN void nfs4_acl_free(fattr4_acl *nfs4acl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters