#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include <unistd.h>
#include <sys/types.h>
Go to the source code of this file.
Defines |
| #define | XATTR_COUNT 0 |
Functions |
| fsal_status_t | GPFSFSAL_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 | GPFSFSAL_ListXAttrs (fsal_handle_t *p_objecthandle, unsigned int cookie, 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 | GPFSFSAL_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 | GPFSFSAL_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 | GPFSFSAL_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 | GPFSFSAL_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 | GPFSFSAL_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 | GPFSFSAL_RemoveXAttrById (fsal_handle_t *p_objecthandle, fsal_op_context_t *p_context, unsigned int xattr_id) |
| fsal_status_t | GPFSFSAL_RemoveXAttrByName (fsal_handle_t *p_objecthandle, fsal_op_context_t *p_context, const fsal_name_t *xattr_name) |
Define Documentation
Function Documentation
Get the attributes of an extended attribute from its index.
- Parameters:
-
| 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. |
- Parameters:
-
| p_attrs | IN/OUT xattr attributes (if supported) |
Definition at line 257 of file FSAL_GPFS/fsal_xattrs.c.
Get the index of an xattr based on its name
- Parameters:
-
| 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 |
- Returns:
- ERR_FSAL_NO_ERROR if xattr_name exists, ERR_FSAL_NOENT otherwise
Definition at line 446 of file FSAL_GPFS/fsal_xattrs.c.
Get the value of an extended attribute from its index.
- Parameters:
-
| 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 408 of file FSAL_GPFS/fsal_xattrs.c.
Get the value of an extended attribute from its name.
- Parameters:
-
| 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 492 of file FSAL_GPFS/fsal_xattrs.c.
Retrieves the list of extended attributes for an object in the filesystem.
- Parameters:
-
| 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 322 of file FSAL_GPFS/fsal_xattrs.c.
Removes a xattr by Name
- Parameters:
-
| 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 555 of file FSAL_GPFS/fsal_xattrs.c.
Removes a xattr by Name
- Parameters:
-
| 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 570 of file FSAL_GPFS/fsal_xattrs.c.