summaryrefslogtreecommitdiff
path: root/rquota_svc.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2007-08-27 12:32:57 +0000
committerjkar8572 <jkar8572>2007-08-27 12:32:57 +0000
commit1457645d5dae64bb9edd00fd14a0e2dfc286c824 (patch)
tree92c8816285ac15def546283c109ef01787ed41c1 /rquota_svc.c
parenteceaf41b25c086f3f227bf8345b8ea7c86ef55b8 (diff)
downloadlinuxquota-1457645d5dae64bb9edd00fd14a0e2dfc286c824.tar.gz
Removed -m option for the server. After some discussions I agree it does not make much sense. (Jan Kara)
Diffstat (limited to 'rquota_svc.c')
-rw-r--r--rquota_svc.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/rquota_svc.c b/rquota_svc.c
index 1d0b326..c766eed 100644
--- a/rquota_svc.c
+++ b/rquota_svc.c
@@ -12,7 +12,7 @@
* changes for new utilities by Jan Kara <jack@suse.cz>
* patches by Jani Jaakkola <jjaakkol@cs.helsinki.fi>
*
- * Version: $Id: rquota_svc.c,v 1.19 2007/08/23 19:58:14 jkar8572 Exp $
+ * Version: $Id: rquota_svc.c,v 1.20 2007/08/27 12:32:57 jkar8572 Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -62,7 +62,6 @@ struct authunix_parms *unix_cred;
#define FL_SETQUOTA 1 /* Enable setquota rpc */
#define FL_NODAEMON 2 /* Disable daemon() call */
#define FL_AUTOFS 4 /* Don't ignore autofs mountpoints */
-#define FL_MIXED_PATHS 8 /* Prepend NFS pseudoroot only to relative paths */
int flags; /* Options specified on command line */
static int port; /* Port to use (0 for default one) */
@@ -80,7 +79,6 @@ static struct option options[]= {
{ "autofs", 0, NULL, 'I'},
{ "port", 1, NULL, 'p' },
{ "xtab", 1, NULL, 'x' },
- { "mixed-pathnames", 0, NULL, 'm'},
{ NULL, 0, NULL , 0 }
};
@@ -95,9 +93,7 @@ static void show_help(void)
-p --port <port> listen on given port\n\
-s --no-setquota disables remote calls to setquota (default)\n\
-S --setquota enables remote calls to setquota\n\
- -x --xtab <path> set an alternative file with NFSD export table\n\
- -m --mixed-pathnames prepend by NFS pseudoroot only pathnames without\n\
- leading slash\n"), progname);
+ -x --xtab <path> set an alternative file with NFSD export table\n"), progname);
#else
errstr(_("Usage: %s [options]\nOptions are:\n\
@@ -106,9 +102,7 @@ static void show_help(void)
-F --foreground starts the quota service in foreground\n\
-I --autofs do not ignore mountpoints mounted by automounter\n\
-p --port <port> listen on given port\n\
- -x --xtab <path> set an alternative file with NFSD export table\n\
- -m --mixed-pathnames prepend by NFS pseudoroot only pathnames without\n\
- leading slash\n"), progname);
+ -x --xtab <path> set an alternative file with NFSD export table\n"), progname);
#endif
}
@@ -162,9 +156,6 @@ static void parse_options(int argc, char **argv)
}
sstrncpy(xtab_path, optarg, PATH_MAX);
break;
- case 'm':
- flags |= FL_MIXED_PATHS;
- break;
default:
errstr(_("Unknown option '%c'.\n"), opt);
show_help();