nfs-ganesha 1.4
|
#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "fsal_common.h"
#include "HPSSclapiExt/hpssclapiext.h"
#include <hpss_errno.h>
Go to the source code of this file.
Functions | |
fsal_status_t | HPSSFSAL_lookup (hpssfsal_handle_t *parent_directory_handle, fsal_name_t *p_filename, hpssfsal_op_context_t *p_context, hpssfsal_handle_t *object_handle, fsal_attrib_list_t *object_attributes) |
fsal_status_t | HPSSFSAL_lookupJunction (hpssfsal_handle_t *p_junction_handle, hpssfsal_op_context_t *p_context, hpssfsal_handle_t *p_fsoot_handle, fsal_attrib_list_t *p_fsroot_attributes) |
fsal_status_t | HPSSFSAL_lookupPath (fsal_path_t *p_path, hpssfsal_op_context_t *p_context, hpssfsal_handle_t *object_handle, fsal_attrib_list_t *object_attributes) |
fsal_status_t HPSSFSAL_lookup | ( | hpssfsal_handle_t * | parent_directory_handle, |
fsal_name_t * | p_filename, | ||
hpssfsal_op_context_t * | p_context, | ||
hpssfsal_handle_t * | object_handle, | ||
fsal_attrib_list_t * | object_attributes | ||
) |
FSAL_lookup : Looks up for an object into a directory.
Note : if parent handle and filename are NULL, this retrieves root's handle.
parent_directory_handle | (input) Handle of the parent directory to search the object in. |
filename | (input) The name of the object to find. |
p_context | (input) Authentication context for the operation (user,...). |
object_handle | (output) The handle of the object corresponding to filename. |
object_attributes | (optional input/output) Pointer to the attributes of the object we found. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). It can be NULL (increases performances). |
/!\ WARNING : When the directory handle is stale, HPSS returns ENOTDIR. Thus, in this case, we must double check by checking the directory handle.
Definition at line 60 of file FSAL_HPSS/fsal_lookup.c.
fsal_status_t HPSSFSAL_lookupJunction | ( | hpssfsal_handle_t * | p_junction_handle, |
hpssfsal_op_context_t * | p_context, | ||
hpssfsal_handle_t * | p_fsoot_handle, | ||
fsal_attrib_list_t * | p_fsroot_attributes | ||
) |
FSAL_lookupJunction : Get the fileset root for a junction.
p_junction_handle | (input) Handle of the junction to be looked up. |
cred | (input) Authentication context for the operation (user,...). |
p_fsroot_handle | (output) The handle of root directory of the fileset. |
p_fsroot_attributes | (optional input/output) Pointer to the attributes of the root directory for the fileset. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). It can be NULL (increases performances). |
Definition at line 221 of file FSAL_HPSS/fsal_lookup.c.
fsal_status_t HPSSFSAL_lookupPath | ( | fsal_path_t * | p_path, |
hpssfsal_op_context_t * | p_context, | ||
hpssfsal_handle_t * | object_handle, | ||
fsal_attrib_list_t * | object_attributes | ||
) |
FSAL_lookupPath : Looks up for an object into the namespace.
Note : if path equals "/", this retrieves root's handle.
path | (input) The path of the object to find. |
p_context | (input) Authentication context for the operation (user,...). |
object_handle | (output) The handle of the object corresponding to filename. |
object_attributes | (optional input/output) Pointer to the attributes of the object we found. As input, it defines the attributes that the caller wants to retrieve (by positioning flags into this structure) and the output is built considering this input (it fills the structure according to the flags it contains). It can be NULL (increases performances). |
Definition at line 308 of file FSAL_HPSS/fsal_lookup.c.