/*********************************************** * osdNfs.h * * RTEMS specified routines for NFS operation * * Created by: Zheqiao Geng, gengzq@slac.stanford.edu * Created on: Aug. 13, 2010 * Description: Realize the basic function for NFS mount and dismount ***********************************************/ #ifndef OSDNFS_H #define OSDNFS_H /* header files for RTEMS */ #include #include #include #define NFS_PATH_LEN 255 /* string length for NFS related path */ /* definition except for vxWorks */ #define OK 0 #define ERROR -1 #define logMsg errlogPrintf /* NFS operation error codes */ #define NFS_SUCCESS 0 /* succeed */ #define NFS_FAILURE -1 /* failure with unknown reasons */ #define NFS_INVALID_HOST 1 /* uid_gid_host parameter is invalid */ #define NFS_INVALID_PATH 2 /* path on the NFS server is invalid */ #define NFS_INVALID_MNTPOINT 3 /* mount point in invalid */ /* routines for NFS operation */ int mountFileSystem(char *uidhost, char *addr, char *path, char *mntpoint); /* mount the NFS */ int dismountFileSystem(char *mntpoint); /* dismount the NFS */ #endif