nfs-ganesha 1.4
|
00001 /* 00002 * vim:expandtab:shiftwidth=8:tabstop=8: 00003 */ 00004 00014 #ifdef HAVE_CONFIG_H 00015 #include "config.h" 00016 #endif 00017 00018 #ifdef _SOLARIS 00019 #include "solaris_port.h" 00020 #endif /* _SOLARIS */ 00021 00022 #include "fsal_convert.h" 00023 #include "fsal_internal.h" 00024 #include <sys/types.h> 00025 #include <sys/stat.h> 00026 #include <errno.h> 00027 00028 /* some ideas of conversion functions... 00029 00030 int fs2fsal_error(int fs_errorcode); 00031 00032 int fsal2fs_openflags( fsal_openflags_t fsal_flags, int * p_fs_flags ); 00033 00034 int fsal2fs_testperm(fsal_accessflags_t testperm); 00035 00036 fsal_status_t fs2fsal_attributes( <your fs attribute structure (input)>, 00037 fsal_attrib_list_t * p_fsalattr_out ); 00038 00039 fsal_accessmode_t fs2fsal_mode( <your fs object permission (input)> ); 00040 00041 void fsal2fs_mode( fsal_accessmode_t fsal_mode, <your fs mode type (output)> ); 00042 00043 fsal_nodetype_t hpss2fsal_type( <your fs object type (input)> ); 00044 00045 fsal_u64_t fs2fsal_64( <your fs 64bits type> ); 00046 00047 <your fs 64bits type> fsal2hpss_64( fsal_u64_t fsal_size_in ); 00048 00049 fsal_fsid_t fs2fsal_fsid( <you fs fsid type> ); 00050 00051 fsal_status_t fsal2fs_attribset( proxyfsal_handle_t * p_fsal_handle, 00052 fsal_attrib_list_t * p_attrib_set , 00053 <depends on your fs way of setting attributes> ); 00054 00055 fsal_time_t fs2fsal_time( <your fs time structure> ); 00056 00057 <your fs time structure> fsal2fs_time(fsal_time_t in_time); 00058 00059 */ 00060 00061