fsal_status_t WRAP_LUSTREFSAL_open(fsal_handle_t * p_filehandle, /* IN */ fsal_op_context_t * p_context, /* IN */ fsal_openflags_t openflags, /* IN */ fsal_file_t * p_file_descriptor, /* OUT */ fsal_attrib_list_t * p_file_attributes /* [ IN/OUT ] */ ) { return LUSTREFSAL_open((lustrefsal_handle_t *) p_filehandle, (lustrefsal_op_context_t *) p_context, openflags, (lustrefsal_file_t *) p_file_descriptor, p_file_attributes); }
fsal_status_t LUSTREFSAL_open_by_name(lustrefsal_handle_t * dirhandle, /* IN */ fsal_name_t * filename, /* IN */ lustrefsal_op_context_t * p_context, /* IN */ fsal_openflags_t openflags, /* IN */ lustrefsal_file_t * file_descriptor, /* OUT */ fsal_attrib_list_t * file_attributes /* [ IN/OUT ] */ ) { fsal_status_t fsal_status; lustrefsal_handle_t filehandle; if(!dirhandle || !filename || !p_context || !file_descriptor) Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_open_by_name); fsal_status = LUSTREFSAL_lookup(dirhandle, filename, p_context, &filehandle, file_attributes); if(FSAL_IS_ERROR(fsal_status)) return fsal_status; return LUSTREFSAL_open(&filehandle, p_context, openflags, file_descriptor, file_attributes); }