nfs-ganesha 1.4
Defines | Functions

test_fsal.c File Reference

#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.

Defines

#define READDIR_SIZE   5
#define CHANGE_ATTRS(str_nom, nom, flag, new_val)

Functions

void printmask (fsal_attrib_mask_t mask)
char * strtype (fsal_nodetype_t type)
void printattributes (fsal_attrib_list_t attrs)
void usage ()
int main (int argc, char **argv)

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; \
/*  attribs.asked_attributes = mask;                      */\
  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)
#define READDIR_SIZE   5

Definition at line 25 of file FSAL_HPSS/test_fsal.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 156 of file FSAL_HPSS/test_fsal.c.

void printattributes ( fsal_attrib_list_t  attrs)

Definition at line 95 of file FSAL_HPSS/test_fsal.c.

void printmask ( fsal_attrib_mask_t  mask)

Definition at line 27 of file FSAL_HPSS/test_fsal.c.

char* strtype ( fsal_nodetype_t  type)

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.

void usage ( )

Definition at line 138 of file FSAL_HPSS/test_fsal.c.