nfs-ganesha 1.4
|
Go to the source code of this file.
Classes | |
struct | fsal_xattr_def__ |
Defines | |
#define | XATTR_FOR_FILE 0x00000001 |
#define | XATTR_FOR_DIR 0x00000002 |
#define | XATTR_FOR_SYMLINK 0x00000004 |
#define | XATTR_FOR_ALL 0x0000000F |
#define | XATTR_RO 0x00000100 |
#define | XATTR_RW 0x00000200 |
#define | XATTR_COUNT 8 |
Typedefs | |
typedef int(* | xattr_getfunc_t )(proxyfsal_handle_t *, proxyfsal_op_context_t *, caddr_t, size_t, size_t *) |
typedef int(* | xattr_setfunc_t )(proxyfsal_handle_t *, proxyfsal_op_context_t *, caddr_t, size_t, int) |
typedef int(* | xattr_printfunc_t )(caddr_t, size_t, caddr_t, size_t *) |
typedef struct fsal_xattr_def__ | fsal_xattr_def_t |
Functions | |
int | get_svr_addr (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_svr_port (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_prognum (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_proto (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_clientid (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_type (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | get_svr_handle (proxyfsal_handle_t *p_objecthandle, proxyfsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
int | print_srv_handle (caddr_t InBuff, size_t InSize, caddr_t OutBuff, size_t *pOutSize) |
int | do_match_type (int xattr_flag, fsal_nodetype_t obj_type) |
fsal_status_t | PROXYFSAL_GetXAttrAttrs (fsal_handle_t *p_objecthandle, fsal_op_context_t *p_context, unsigned int xattr_id, fsal_attrib_list_t *p_attrs) |
fsal_status_t | PROXYFSAL_ListXAttrs (fsal_handle_t *p_objecthandle, unsigned int argcookie, fsal_op_context_t *p_context, fsal_xattrent_t *xattrs_tab, unsigned int xattrs_tabsize, unsigned int *p_nb_returned, int *end_of_list) |
fsal_status_t | PROXYFSAL_GetXAttrValueById (fsal_handle_t *p_objecthandle, unsigned int xattr_id, fsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
fsal_status_t | PROXYFSAL_GetXAttrIdByName (fsal_handle_t *p_objecthandle, const fsal_name_t *xattr_name, fsal_op_context_t *p_context, unsigned int *pxattr_id) |
fsal_status_t | PROXYFSAL_GetXAttrValueByName (fsal_handle_t *p_objecthandle, const fsal_name_t *xattr_name, fsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, size_t *p_output_size) |
fsal_status_t | PROXYFSAL_SetXAttrValue (fsal_handle_t *p_objecthandle, const fsal_name_t *xattr_name, fsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size, int create) |
fsal_status_t | PROXYFSAL_SetXAttrValueById (fsal_handle_t *p_objecthandle, unsigned int xattr_id, fsal_op_context_t *p_context, caddr_t buffer_addr, size_t buffer_size) |
fsal_status_t | PROXYFSAL_RemoveXAttrById (fsal_handle_t *p_objecthandle, fsal_op_context_t *p_context, unsigned int xattr_id) |
fsal_status_t | PROXYFSAL_RemoveXAttrByName (fsal_handle_t *p_objecthandle, fsal_op_context_t *p_context, const fsal_name_t *xattr_name) |
int | PROXYFSAL_GetXattrOffsetSetable (void) |
#define XATTR_COUNT 8 |
Definition at line 248 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_FOR_ALL 0x0000000F |
Definition at line 28 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_FOR_DIR 0x00000002 |
Definition at line 26 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_FOR_FILE 0x00000001 |
Definition at line 25 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_FOR_SYMLINK 0x00000004 |
Definition at line 27 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_RO 0x00000100 |
Definition at line 29 of file FSAL_PROXY/fsal_xattrs.c.
#define XATTR_RW 0x00000200 |
Definition at line 30 of file FSAL_PROXY/fsal_xattrs.c.
typedef struct fsal_xattr_def__ fsal_xattr_def_t |
typedef int(* xattr_getfunc_t)(proxyfsal_handle_t *,proxyfsal_op_context_t *,caddr_t,size_t,size_t *) |
Definition at line 34 of file FSAL_PROXY/fsal_xattrs.c.
typedef int(* xattr_printfunc_t)(caddr_t,size_t,caddr_t,size_t *) |
Definition at line 46 of file FSAL_PROXY/fsal_xattrs.c.
typedef int(* xattr_setfunc_t)(proxyfsal_handle_t *,proxyfsal_op_context_t *,caddr_t,size_t,int) |
Definition at line 40 of file FSAL_PROXY/fsal_xattrs.c.
int do_match_type | ( | int | xattr_flag, |
fsal_nodetype_t | obj_type | ||
) |
Definition at line 258 of file FSAL_PROXY/fsal_xattrs.c.
int get_clientid | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 142 of file FSAL_PROXY/fsal_xattrs.c.
int get_prognum | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 108 of file FSAL_PROXY/fsal_xattrs.c.
int get_proto | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 125 of file FSAL_PROXY/fsal_xattrs.c.
int get_svr_addr | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 64 of file FSAL_PROXY/fsal_xattrs.c.
int get_svr_handle | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 198 of file FSAL_PROXY/fsal_xattrs.c.
int get_svr_port | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 87 of file FSAL_PROXY/fsal_xattrs.c.
int get_type | ( | proxyfsal_handle_t * | p_objecthandle, |
proxyfsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Definition at line 160 of file FSAL_PROXY/fsal_xattrs.c.
int print_srv_handle | ( | caddr_t | InBuff, |
size_t | InSize, | ||
caddr_t | OutBuff, | ||
size_t * | pOutSize | ||
) |
Definition at line 223 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_GetXAttrAttrs | ( | fsal_handle_t * | p_objecthandle, |
fsal_op_context_t * | p_context, | ||
unsigned int | xattr_id, | ||
fsal_attrib_list_t * | p_attrs | ||
) |
Get the attributes of an extended attribute from its index.
p_objecthandle | Handle of the object you want to get attribute for. |
p_context | pointer to the current security context. |
xattr_cookie | xattr's cookie (as returned by listxattrs). |
p_attrs | xattr's attributes. |
p_attrs | IN/OUT xattr attributes (if supported) |
Definition at line 414 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_GetXAttrIdByName | ( | fsal_handle_t * | p_objecthandle, |
const fsal_name_t * | xattr_name, | ||
fsal_op_context_t * | p_context, | ||
unsigned int * | pxattr_id | ||
) |
Get the index of an xattr based on its name
p_objecthandle | Handle of the object you want to get attribute for. |
xattr_name | the name of the attribute to be read. |
pxattr_id | found xattr_id |
Definition at line 600 of file FSAL_PROXY/fsal_xattrs.c.
int PROXYFSAL_GetXattrOffsetSetable | ( | void | ) |
Definition at line 724 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_GetXAttrValueById | ( | fsal_handle_t * | p_objecthandle, |
unsigned int | xattr_id, | ||
fsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Get the value of an extended attribute from its index.
p_objecthandle | Handle of the object you want to get attribute for. |
xattr_name | the name of the attribute to be read. |
p_context | pointer to the current security context. |
buffer_addr | address of the buffer where the xattr value is to be stored. |
buffer_size | size of the buffer where the xattr value is to be stored. |
p_output_size | size of the data actually stored into the buffer. |
Definition at line 550 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_GetXAttrValueByName | ( | fsal_handle_t * | p_objecthandle, |
const fsal_name_t * | xattr_name, | ||
fsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
size_t * | p_output_size | ||
) |
Get the value of an extended attribute from its name.
p_objecthandle | Handle of the object you want to get attribute for. |
xattr_name | the name of the attribute to be read. |
p_context | pointer to the current security context. |
buffer_addr | address of the buffer where the xattr value is to be stored. |
buffer_size | size of the buffer where the xattr value is to be stored. |
p_output_size | size of the data actually stored into the buffer. |
Definition at line 642 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_ListXAttrs | ( | fsal_handle_t * | p_objecthandle, |
unsigned int | argcookie, | ||
fsal_op_context_t * | p_context, | ||
fsal_xattrent_t * | xattrs_tab, | ||
unsigned int | xattrs_tabsize, | ||
unsigned int * | p_nb_returned, | ||
int * | end_of_list | ||
) |
Retrieves the list of extended attributes for an object in the filesystem.
p_objecthandle | Handle of the object we want to get extended attributes. |
cookie | index of the next entry to be returned. |
p_context | pointer to the current security context. |
xattrs_tab | a table for storing extended attributes list to. |
xattrs_tabsize | the maximum number of xattr entries that xattrs_tab can contain. |
p_nb_returned | the number of xattr entries actually stored in xattrs_tab. |
end_of_list | this boolean indicates that the end of xattrs list has been reached. |
Definition at line 471 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_RemoveXAttrById | ( | fsal_handle_t * | p_objecthandle, |
fsal_op_context_t * | p_context, | ||
unsigned int | xattr_id | ||
) |
Removes a xattr by Id
p_objecthandle | Handle of the object you want to get attribute for. |
p_context | pointer to the current security context. |
xattr_id | xattr's id |
Definition at line 703 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_RemoveXAttrByName | ( | fsal_handle_t * | p_objecthandle, |
fsal_op_context_t * | p_context, | ||
const fsal_name_t * | xattr_name | ||
) |
Removes a xattr by Name
p_objecthandle | Handle of the object you want to get attribute for. |
p_context | pointer to the current security context. |
xattr_name | xattr's name |
Definition at line 717 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_SetXAttrValue | ( | fsal_handle_t * | p_objecthandle, |
const fsal_name_t * | xattr_name, | ||
fsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size, | ||
int | create | ||
) |
Definition at line 675 of file FSAL_PROXY/fsal_xattrs.c.
fsal_status_t PROXYFSAL_SetXAttrValueById | ( | fsal_handle_t * | p_objecthandle, |
unsigned int | xattr_id, | ||
fsal_op_context_t * | p_context, | ||
caddr_t | buffer_addr, | ||
size_t | buffer_size | ||
) |
Definition at line 686 of file FSAL_PROXY/fsal_xattrs.c.