diff options
author | Roy Marples <roy@marples.name> | 2007-09-26 10:09:27 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-26 10:09:27 +0000 |
commit | 46af0c7ddbf5e346e2895494796262c915917028 (patch) | |
tree | 50e9a098f87748a514686e4aee3267632b710c8c /src | |
parent | 675d0a94c725e60afa25f7da372148cceedb4d60 (diff) |
If it's in fstab, let mount work everything out instead of us.
Diffstat (limited to 'src')
-rw-r--r-- | src/fstabinfo.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/fstabinfo.c b/src/fstabinfo.c index bb0977db..54235894 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -67,7 +67,6 @@ static struct mntent *getmntfile (const char *file) #include "_usage.h" #define getoptstring "mop:t:" getoptstring_COMMON static struct option longopts[] = { - { "mountcmd", 0, NULL, 'm'}, { "options", 0, NULL, 'o'}, { "passno", 1, NULL, 'p'}, { "fstype", 1, NULL, 't'}, @@ -84,7 +83,6 @@ static const char * const longopts_help[] = { #include "_usage.c" #define OUTPUT_FILE (1 << 1) -#define OUTPUT_MOUNTCMD (1 << 2) #define OUTPUT_OPTIONS (1 << 3) #define OUTPUT_PASSNO (1 << 4) @@ -109,10 +107,6 @@ int fstabinfo (int argc, char **argv) longopts, (int *) 0)) != -1) { switch (opt) { - case 'm': - output = OUTPUT_MOUNTCMD; - break; - case 'o': output = OUTPUT_OPTIONS; break; @@ -185,11 +179,6 @@ int fstabinfo (int argc, char **argv) continue; switch (output) { - case OUTPUT_MOUNTCMD: - printf ("-o %s -t %s '%s' '%s'\n", ENT_OPTS (ent), - ENT_TYPE (ent), ENT_DEVICE (ent), ENT_FILE (ent)); - break; - case OUTPUT_OPTIONS: printf ("%s\n", ENT_OPTS (ent)); break; |