#include "fsal.h"
#include "log.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
Go to the source code of this file.
Define Documentation
#define CHANGE_ATTRS |
( |
|
str_nom, |
|
|
|
nom, |
|
|
|
flag, |
|
|
|
new_val |
|
) |
| |
Value:do {\
memset(&attr_set, 0, sizeof(fsal_attrib_list_t) ); \
LogTest("\nTry to change '%s' :",str_nom); \
FSAL_SET_MASK( attr_set.asked_attributes , flag ); \
attr_set.nom = new_val; \
attribs.asked_attributes = attr_set.asked_attributes; \
\
st = FSAL_setattrs( &dir_hdl, &op_ctx, &attr_set, &attribs );\
if ( FSAL_IS_ERROR(st) ) \
LogError(COMPONENT_STDOUT,ERR_FSAL,st.major,st.minor);\
else \
printattributes( attribs ); \
} while(0)
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
strtype: convert an FSAL object type to a string.
- Parameters:
-
type | (in fsal_nodetype_t) The type to be printed. |
- Returns:
- The name (char *) for this FSAL object type.
Definition at line 69 of file FSAL_HPSS/test_fsal.c.