diff options
Diffstat (limited to 'sbin/dump/main.c')
-rw-r--r-- | sbin/dump/main.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 6784b55..b540383 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -128,9 +128,9 @@ main(int argc, char *argv[]) obsolete(&argc, &argv); #ifdef KERBEROS -#define optstring "0123456789aB:b:cd:f:h:kLns:ST:uWwD:C:" +#define optstring "0123456789aB:b:C:cD:d:f:h:kLnSs:T:uWw" #else -#define optstring "0123456789aB:b:cd:f:h:Lns:ST:uWwD:C:" +#define optstring "0123456789aB:b:C:cD:d:f:h:LnSs:T:uWw" #endif while ((ch = getopt(argc, argv, optstring)) != -1) #undef optstring @@ -155,10 +155,18 @@ main(int argc, char *argv[]) 1L, 1000L); break; + case 'C': + cachesize = numarg("cachesize", 0, 0) * 1024 * 1024; + break; + case 'c': /* Tape is cart. not 9-track */ cartridge = 1; break; + case 'D': + dumpdates = optarg; + break; + case 'd': /* density, in bits per inch */ density = numarg("density", 10L, 327670L) / 10; if (density >= 625 && !bflag) @@ -169,14 +177,6 @@ main(int argc, char *argv[]) tape = optarg; break; - case 'D': - dumpdates = optarg; - break; - - case 'C': - cachesize = numarg("cachesize", 0, 0) * 1024 * 1024; - break; - case 'h': honorlevel = numarg("honor level", 0L, 10L); break; @@ -195,14 +195,14 @@ main(int argc, char *argv[]) notify = 1; break; - case 's': /* tape size, feet */ - tsize = numarg("tape size", 1L, 0L) * 12 * 10; - break; - case 'S': /* exit after estimating # of tapes */ just_estimate = 1; break; + case 's': /* tape size, feet */ + tsize = numarg("tape size", 1L, 0L) * 12 * 10; + break; + case 'T': /* time of last dump */ spcl.c_ddate = unctime(optarg); if (spcl.c_ddate < 0) { @@ -576,9 +576,9 @@ usage(void) #ifdef KERBEROS "k" #endif - "nSu] [-B records] [-b blocksize] [-D dumpdates]\n" - " [-d density] [-f file] [-h level] [-s feet]\n" - " [-T date] [-C cachesizeMB] filesystem\n" + "LnSu] [-B records] [-b blocksize] [-C cachesize]\n" + " [-D dumpdates] [-d density] [-f file] [-h level] [-s feet]\n" + " [-T date] filesystem\n" " dump -W | -w\n"); exit(X_STARTUP); } |