nfs-ganesha 1.4
|
00001 00010 #ifndef _FSAL_CONVERTION_H 00011 #define _FSAL_CONVERTION_H 00012 00013 #include "fsal.h" 00014 00015 /* convert error codes */ 00016 int posix2fsal_error(int posix_errorcode); 00017 00019 int fsal2posix_openflags(fsal_openflags_t fsal_flags, int *p_posix_flags); 00020 00022 int fsal2posix_testperm(fsal_accessflags_t testperm); 00023 00027 fsal_status_t posix2fsal_attributes(struct stat *p_buffstat, 00028 fsal_attrib_list_t * p_fsalattr_out); 00029 00031 mode_t fsal2unix_mode(fsal_accessmode_t fsal_mode); 00032 00034 fsal_accessmode_t unix2fsal_mode(mode_t unix_mode); 00035 00037 fsal_nodetype_t posix2fsal_type(mode_t posix_type_in); 00038 00040 fsal_fsid_t posix2fsal_fsid(dev_t posix_devid); 00041 00047 fsal_time_t posix2fsal_time(time_t tsec); 00048 00054 #define fsal2posix_time(_time_) ((time_t)(_time_).seconds) 00055 00056 #define high32m( a ) ( (unsigned int)( a >> 32 ) ) 00057 #define low32m( a ) ( (unsigned int)a ) 00058 00059 #endif