nfs-ganesha 1.4

fsal_convert.h

Go to the documentation of this file.
00001 
00010 #ifndef _FSAL_CONVERTION_H
00011 #define _FSAL_CONVERTION_H
00012 
00013 #include "fsal.h"
00014 
00015 /* some ideas of conversion functions...
00016 
00017 int fs2fsal_error(int fs_errorcode);
00018 
00019 int fsal2fs_openflags( fsal_openflags_t fsal_flags, int * p_fs_flags );
00020 
00021 int fsal2fs_testperm(fsal_accessflags_t testperm);
00022 
00023 fsal_status_t fs2fsal_attributes(  <your fs attribute structure (input)>,
00024                                    fsal_attrib_list_t * p_fsalattr_out );
00025 
00026 fsal_accessmode_t fs2fsal_mode( <your fs object permission (input)> );
00027 
00028 void fsal2fs_mode( fsal_accessmode_t fsal_mode, <your fs mode type (output)> );
00029 
00030 fsal_nodetype_t  hpss2fsal_type( <your fs object type (input)> );
00031 
00032 fsal_u64_t fs2fsal_64( <your fs 64bits type> );
00033 
00034 <your fs 64bits type> fsal2hpss_64( fsal_u64_t fsal_size_in );
00035 
00036 fsal_fsid_t fs2fsal_fsid( <you fs fsid type> );
00037 
00038 fsal_status_t fsal2fs_attribset( fsal_handle_t  * p_fsal_handle,
00039                                  fsal_attrib_list_t  * p_attrib_set ,
00040                                 <depends on your fs way of setting attributes> );
00041 
00042 fsal_time_t fs2fsal_time( <your fs time structure> );
00043 
00044 <your fs time structure> fsal2fs_time(fsal_time_t in_time);
00045      
00046 */
00047 
00048 #endif