diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-01-05 03:43:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-01-05 03:43:18 -0800 |
| commit | e7f81aa348187ae888192ec0e785733786be8726 (patch) | |
| tree | c323f57383f9d0ac66da660f625d23255f6a8383 | |
| parent | 71713ecd0c7ea2827dd81bf971fb4889087c5d55 (diff) | |
[PATCH] knfsd: Change names of legacy interfaces in nfsd filesys to start with period
The nfsd filesystem provides an interface to nfsd.
Most of the current files should be considered legacy
interfaces as they are not particularly suitable for
filesystem interaction, but are required to support the
syscall interface.
This patch puts a '.' in front of all the names so they
appear as hidden names when the directory is listed.
| -rw-r--r-- | fs/nfsctl.c | 17 | ||||
| -rw-r--r-- | fs/nfsd/nfsctl.c | 14 |
2 files changed, 14 insertions, 17 deletions
diff --git a/fs/nfsctl.c b/fs/nfsctl.c index 195e1a6dc037..f5065ab668cb 100644 --- a/fs/nfsctl.c +++ b/fs/nfsctl.c @@ -54,16 +54,13 @@ static struct file *do_open(char *name, int flags) static struct { char *name; int wsize; int rsize; } map[] = { - [NFSCTL_SVC]={"svc", sizeof(struct nfsctl_svc)}, - [NFSCTL_ADDCLIENT]={"add", sizeof(struct nfsctl_client)}, - [NFSCTL_DELCLIENT]={"del", sizeof(struct nfsctl_client)}, - [NFSCTL_EXPORT]={"export", sizeof(struct nfsctl_export)}, - [NFSCTL_UNEXPORT]={"unexport", sizeof(struct nfsctl_export)}, -#ifdef notyet - [NFSCTL_UGIDUPDATE]={"ugid", sizeof(struct nfsctl_uidmap)}, -#endif - [NFSCTL_GETFD]={"getfd", sizeof(struct nfsctl_fdparm), NFS_FHSIZE}, - [NFSCTL_GETFS]={"getfs", sizeof(struct nfsctl_fsparm), sizeof(struct knfsd_fh)}, + [NFSCTL_SVC]={".svc", sizeof(struct nfsctl_svc)}, + [NFSCTL_ADDCLIENT]={".add", sizeof(struct nfsctl_client)}, + [NFSCTL_DELCLIENT]={".del", sizeof(struct nfsctl_client)}, + [NFSCTL_EXPORT]={".export", sizeof(struct nfsctl_export)}, + [NFSCTL_UNEXPORT]={".unexport", sizeof(struct nfsctl_export)}, + [NFSCTL_GETFD]={".getfd", sizeof(struct nfsctl_fdparm), NFS_FHSIZE}, + [NFSCTL_GETFS]={".getfs", sizeof(struct nfsctl_fsparm), sizeof(struct knfsd_fh)}, }; long diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 40bc74691adc..a56239d99403 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -201,13 +201,13 @@ static struct file_operations exports_operations = { * Description of fs contents. */ static struct { char *name; struct file_operations *ops; int mode; } files[] = { - [NFSD_Svc] = {"svc", &transaction_ops, S_IWUSR}, - [NFSD_Add] = {"add", &transaction_ops, S_IWUSR}, - [NFSD_Del] = {"del", &transaction_ops, S_IWUSR}, - [NFSD_Export] = {"export", &transaction_ops, S_IWUSR}, - [NFSD_Unexport] = {"unexport", &transaction_ops, S_IWUSR}, - [NFSD_Getfd] = {"getfd", &transaction_ops, S_IWUSR|S_IRUSR}, - [NFSD_Getfs] = {"getfs", &transaction_ops, S_IWUSR|S_IRUSR}, + [NFSD_Svc] = {".svc", &transaction_ops, S_IWUSR}, + [NFSD_Add] = {".add", &transaction_ops, S_IWUSR}, + [NFSD_Del] = {".del", &transaction_ops, S_IWUSR}, + [NFSD_Export] = {".export", &transaction_ops, S_IWUSR}, + [NFSD_Unexport] = {".unexport", &transaction_ops, S_IWUSR}, + [NFSD_Getfd] = {".getfd", &transaction_ops, S_IWUSR|S_IRUSR}, + [NFSD_Getfs] = {".getfs", &transaction_ops, S_IWUSR|S_IRUSR}, [NFSD_List] = {"exports", &exports_operations, S_IRUGO}, }; |
