nfs-ganesha 1.4
Functions

common_pnfs.c File Reference

Utility functions for pNFS. More...

#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
#include <sys/quota.h>
#include "log.h"
#include "fsal.h"
#include "fsal_pnfs.h"
#include "pnfs_common.h"
#include "fsal_pnfs_files.h"
#include "nfs4.h"
#include "cache_inode.h"
#include "nfs_exports.h"
#include "nfs_file_handle.h"
#include "nfs_proto_functions.h"

Go to the source code of this file.

Functions

nfsstat4 posix2nfs4_error (int posix_errorcode)

Detailed Description

Utility functions for pNFS.

common_pnfs.c: Utility functions expected to be used by more than one FSAL implementing pNFS.

Definition in file common_pnfs.c.


Function Documentation

nfsstat4 posix2nfs4_error ( int  posix_errorcode)

Convert POSIX error codes to NFS 4 error codes

Parameters:
posix_errorcode(input): The error code returned from POSIX.
Returns:
The NFSv4 error code associated to posix_errorcode.

Warning:
AIX returns EEXIST where BSD uses ENOTEMPTY; We want ENOTEMPTY to be interpreted anyway on AIX plateforms. Thus, we explicitely write its value (87).

Definition at line 422 of file common_pnfs.c.