nfs-ganesha 1.4
|
#include "fsal_convert.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
Go to the source code of this file.
Defines | |
#define | MAX_2(x, y) ( (x) > (y) ? (x) : (y) ) |
#define | MAX_3(x, y, z) ( (x) > (y) ? MAX_2((x),(z)) : MAX_2((y),(z)) ) |
Functions | |
int | fsal2posix_testperm (fsal_accessflags_t testperm) |
mode_t | fsal2unix_mode (fsal_accessmode_t fsal_mode) |
fsal_accessmode_t | unix2fsal_mode (mode_t unix_mode) |
fsal_nodetype_t | posix2fsal_type (mode_t posix_type_in) |
fsal_time_t | posix2fsal_time (time_t tsec, time_t nsec) |
fsal_fsid_t | posix2fsal_fsid (dev_t posix_devid) |
fsal_dev_t | posix2fsal_devt (dev_t posix_devid) |
Definition at line 25 of file fsal_convert.c.
Definition at line 26 of file fsal_convert.c.
int fsal2posix_testperm | ( | fsal_accessflags_t | testperm | ) |
fsal2posix_testperm: Convert FSAL permission flags to Posix permission flags.
testperm | (input): The FSAL permission flags to be tested. |
Definition at line 37 of file fsal_convert.c.
mode_t fsal2unix_mode | ( | fsal_accessmode_t | fsal_mode | ) |
fsal2unix_mode: Convert FSAL mode to posix mode.
fsal_mode | (input): The FSAL mode to be translated. |
Definition at line 64 of file fsal_convert.c.
fsal_dev_t posix2fsal_devt | ( | dev_t | posix_devid | ) |
Definition at line 211 of file fsal_convert.c.
fsal_fsid_t posix2fsal_fsid | ( | dev_t | posix_devid | ) |
converts posix fsid to fsal FSid.
Definition at line 199 of file fsal_convert.c.
fsal_time_t posix2fsal_time | ( | time_t | tsec, |
time_t | nsec | ||
) |
posix2fsal_time: Convert POSIX time structure (time_t) to FSAL time type (fsal_time_t).
Definition at line 189 of file fsal_convert.c.
fsal_nodetype_t posix2fsal_type | ( | mode_t | posix_type_in | ) |
posix2fsal_type: Convert posix object type to FSAL node type.
posix_type_in | (input): The POSIX object type. |
Definition at line 155 of file fsal_convert.c.
fsal_accessmode_t unix2fsal_mode | ( | mode_t | unix_mode | ) |
unix2fsal_mode: Convert posix mode to FSAL mode.
unix_mode | (input): The posix mode to be translated. |
Definition at line 108 of file fsal_convert.c.