Describes the C FileACE APIs.
The FileACE C APIs are defined in the header file hdfs.h and are as
follows:
Sets the ACEs for a file or directory.
Syntax
int hdfsSetAces(hdfsFS fs, const char *path, hdfsFileAces *faces, int isSet, int isRecursive);
Parameters
Return Value
0 on success, else an error code.
Gets the ACEs from a file or directory.
Syntax
int hdfsGetAces(hdfsFS fs, const char *path, void *aceBuf, int bufLen, hdfsFileAces *faces);
Parameters
Return Value
0 on success, else error ERANGE, which indicates that the buffer is too small to hold the ACE entries.
Deletes all ACEs from a file or directory.
Syntax
int hdfsDeleteAces(hdfsFS fs, const char *path);
Parameters
Return Value
0 on success, else an appropriate error.