nfs-ganesha 1.4
|
calls to NFSv2, NFSv3, MNTv1, MNTv3 commands. More...
#include "ganesha_rpc.h"
#include "fsal.h"
#include "cache_inode.h"
#include "commands.h"
#include "abstract_mem.h"
#include "Getopt.h"
#include "cmd_nfstools.h"
#include "cmd_tools.h"
#include "nfs_file_handle.h"
#include "nfs_core.h"
#include <ctype.h>
#include <unistd.h>
#include <pwd.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | shell_fh3__ |
struct | cmdnfs_thr_info__ |
Defines | |
#define | NFS_READDIR_SIZE 10 |
#define | MAX_GRPS 128 |
Typedefs | |
typedef struct shell_fh3__ | shell_fh3_t |
typedef struct cmdnfs_thr_info__ | cmdnfs_thr_info_t |
Functions | |
cmdnfs_thr_info_t * | GetNFSClient () |
int | InitNFSClient (cmdnfs_thr_info_t *p_thr_info) |
void | nfs_layer_SetLogLevel (int log_lvl) |
int | nfs_init (char *filename, int flag_v, FILE *output) |
int | fn_nfs_init (int argc, char **argv, FILE *output) |
int | fn_MNT1_command (int argc, char **argv, FILE *output) |
int | fn_MNT3_command (int argc, char **argv, FILE *output) |
int | fn_NFS2_command (int argc, char **argv, FILE *output) |
int | fn_NFS3_command (int argc, char **argv, FILE *output) |
void | nfs_readdirplus_free (nfs_res_t *to_free) |
int | fn_nfs_mount (int argc, char **argv, FILE *output) |
int | fn_nfs_umount (int argc, char **argv, FILE *output) |
int | fn_nfs_pwd (int argc, char **argv, FILE *output) |
int | fn_nfs_ls (int argc, char **argv, FILE *output) |
int | fn_nfs_cd (int argc, char **argv, FILE *output) |
int | fn_nfs_create (int argc, char **argv, FILE *output) |
int | fn_nfs_mkdir (int argc, char **argv, FILE *output) |
int | fn_nfs_unlink (int argc, char **argv, FILE *output) |
int | fn_nfs_setattr (int argc, char **argv, FILE *output) |
int | fn_nfs_rename (int argc, char **argv, FILE *output) |
int | fn_nfs_hardlink (int argc, char **argv, FILE *output) |
int | fn_nfs_ln (int argc, char **argv, FILE *output) |
int | fn_nfs_stat (int argc, char **argv, FILE *output) |
int | fn_nfs_su (int argc, char **argv, FILE *output) |
int | fn_nfs_id (int argc, char **argv, FILE *output) |
Variables | |
writeverf3 | NFS3_write_verifier |
hash_table_t * | fh_to_cache_entry_ht |
cache_inode_client_parameter_t | cache_client_param |
cache_content_client_parameter_t | datacache_client_param |
exportlist_t | exportlist [128] |
exportlist_t * | pexportlist = exportlist |
calls to NFSv2, NFSv3, MNTv1, MNTv3 commands.
Revision 1.34 2006/02/23 07:42:53 leibovic Adding -n option to shell.
Revision 1.33 2006/02/22 09:07:45 leibovic Correcting bug for returned value.
Revision 1.32 2006/02/17 13:37:44 leibovic Ghost FS is back !
Revision 1.31 2006/01/27 10:28:37 deniel Now support rpm
Revision 1.30 2006/01/26 07:54:44 leibovic Compil AIX_5 et Linux OK.
Revision 1.29 2006/01/25 09:39:44 deniel pb include DCE
Revision 1.28 2006/01/24 13:49:33 leibovic Adding missing includes.
Revision 1.27 2006/01/24 11:43:05 deniel Code cleaning in progress
Revision 1.26 2006/01/20 14:44:14 leibovic altgroups support.
Revision 1.25 2006/01/18 08:02:04 deniel Order in includes and libraries
Revision 1.24 2006/01/17 16:40:54 leibovic New interface for readexport.
Revision 1.22 2005/11/21 09:55:18 leibovic Once for all thread's credential initialization.
Revision 1.21 2005/11/08 15:22:24 deniel WildCard and Netgroup entry for exportlist are now supported
Revision 1.20 2005/11/04 15:12:58 deniel Added basic authentication support
Revision 1.19 2005/10/12 11:30:10 leibovic NFSv2.
Revision 1.18 2005/10/10 12:39:08 leibovic Using mnt/nfs free functions.
Revision 1.17 2005/09/28 11:02:29 leibovic Adding su command to NFS layer.
Revision 1.16 2005/09/27 08:15:13 leibovic Adding traces and changhing readexport prototype.
Revision 1.15 2005/09/07 14:08:32 leibovic Adding stat command for NFS.
Revision 1.14 2005/08/12 07:07:23 leibovic Adding ln command for nfs.
Revision 1.13 2005/08/10 14:55:05 leibovic NFS support of setattr, rename, link, symlink.
Revision 1.12 2005/08/10 10:57:18 leibovic Adding removal functions.
Revision 1.11 2005/08/09 14:52:58 leibovic Addinf create and mkdir commands.
Revision 1.10 2005/08/08 11:42:50 leibovic Adding some stardard unix calls through NFS (ls, cd, pwd).
Revision 1.9 2005/08/05 15:17:57 leibovic Adding mount and pwd commands for browsing.
Revision 1.8 2005/08/05 07:59:07 leibovic some nfs3 commands added.
Revision 1.7 2005/08/04 06:57:41 leibovic some NFSv2 commands are completed.
Revision 1.6 2005/08/03 12:51:16 leibovic MNT3 protocol OK.
Revision 1.5 2005/08/03 11:51:10 leibovic MNT1 protocol OK.
Revision 1.4 2005/08/03 08:16:23 leibovic Adding nfs layer structures.
Revision 1.3 2005/05/09 12:23:55 leibovic Version 2 of ganeshell.
Revision 1.2 2005/03/04 10:12:15 leibovic New debug functions.
Revision 1.1 2005/01/21 09:40:31 leibovic Integrating NFS and MNT protocol commands.
Definition in file commands_NFS.c.
#define MAX_GRPS 128 |
#define NFS_READDIR_SIZE 10 |
typedef struct cmdnfs_thr_info__ cmdnfs_thr_info_t |
typedef struct shell_fh3__ shell_fh3_t |
int fn_MNT1_command | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
process MNT1 protocol's command.
Definition at line 553 of file commands_NFS.c.
int fn_MNT3_command | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
process MNT3 protocol's command.
Definition at line 643 of file commands_NFS.c.
int fn_NFS2_command | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
process NFS2 protocol's command.
Definition at line 732 of file commands_NFS.c.
int fn_NFS3_command | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
process NFS3 protocol's command.
Definition at line 839 of file commands_NFS.c.
int fn_nfs_cd | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
change current path
Definition at line 2389 of file commands_NFS.c.
int fn_nfs_create | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
create a file
Definition at line 2475 of file commands_NFS.c.
int fn_nfs_hardlink | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed a hardlink command.
Definition at line 3134 of file commands_NFS.c.
int fn_nfs_id | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Definition at line 3668 of file commands_NFS.c.
int fn_nfs_init | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Init nfs layer
Definition at line 471 of file commands_NFS.c.
int fn_nfs_ln | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an ln command.
Definition at line 3270 of file commands_NFS.c.
int fn_nfs_ls | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an ls command using NFS protocol NFS
Definition at line 2066 of file commands_NFS.c.
int fn_nfs_mkdir | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
create a directory
Definition at line 2602 of file commands_NFS.c.
int fn_nfs_mount | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
mount a path to browse it.
Definition at line 1853 of file commands_NFS.c.
int fn_nfs_pwd | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
prints current path
Definition at line 2033 of file commands_NFS.c.
int fn_nfs_rename | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed a rename command.
Definition at line 2997 of file commands_NFS.c.
int fn_nfs_setattr | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
setattr
Definition at line 2867 of file commands_NFS.c.
int fn_nfs_stat | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an ls command using NFS protocol NFS
Definition at line 3412 of file commands_NFS.c.
int fn_nfs_su | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
change thread credentials.
Definition at line 3567 of file commands_NFS.c.
int fn_nfs_umount | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
umount a mounted path.
Definition at line 1952 of file commands_NFS.c.
int fn_nfs_unlink | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
unlink a file
Definition at line 2729 of file commands_NFS.c.
cmdnfs_thr_info_t* GetNFSClient | ( | ) |
Definition at line 273 of file commands_NFS.c.
int InitNFSClient | ( | cmdnfs_thr_info_t * | p_thr_info | ) |
Definition at line 317 of file commands_NFS.c.
int nfs_init | ( | char * | filename, |
int | flag_v, | ||
FILE * | output | ||
) |
Definition at line 402 of file commands_NFS.c.
void nfs_layer_SetLogLevel | ( | int | log_lvl | ) |
Definition at line 386 of file commands_NFS.c.
void nfs_readdirplus_free | ( | nfs_res_t * | to_free | ) |
Definition at line 1343 of file commands_NFS.c.
cache_inode_client_parameter_t cache_client_param |
Global (exported) variable : init parameters for clients.
Definition at line 84 of file commands_Cache_inode.c.
Definition at line 85 of file commands_Cache_inode.c.
exportlist_t exportlist[128] |
Definition at line 213 of file commands_NFS.c.
Definition at line 94 of file nfs_init.c.
Definition at line 161 of file commands_NFS.c.
Definition at line 214 of file commands_NFS.c.