fsal_status_t WRAP_LUSTREFSAL_lookup(fsal_handle_t * p_parent_directory_handle, /* IN */ fsal_name_t * p_filename, /* IN */ fsal_op_context_t * p_context, /* IN */ fsal_handle_t * p_object_handle, /* OUT */ fsal_attrib_list_t * p_object_attributes /* [ IN/OUT ] */ ) { return LUSTREFSAL_lookup((lustrefsal_handle_t *) p_parent_directory_handle, p_filename, (lustrefsal_op_context_t *) p_context, (lustrefsal_handle_t *) p_object_handle, p_object_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); }