diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-12-01 23:19:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-12-01 23:19:57 +0000 |
commit | 65cd973056bcc0b476db5420de32032ca938a291 (patch) | |
tree | 60adc91127e77270028f166036582b96af5609b5 /sbin/mdmfs/mdmfs.c | |
parent | d0bf4d528777cc5822c5ae29630d6d68c046f23a (diff) | |
download | FreeBSD-src-65cd973056bcc0b476db5420de32032ca938a291.zip FreeBSD-src-65cd973056bcc0b476db5420de32032ca938a291.tar.gz |
Teach mdmfs how to pass UFS version numbers through to newfs. Because
of an argument name collision with -O, use -v, and default to whatever
the newfs default is for the platform (generally, UFS1). This is
required to support diskless workstations that use UFS2 for their
mdmfs file systems.
Reviewed by: dd, bmah
Approved by: re (bmah)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sbin/mdmfs/mdmfs.c')
-rw-r--r-- | sbin/mdmfs/mdmfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c index 1ed069d..ee1c736 100644 --- a/sbin/mdmfs/mdmfs.c +++ b/sbin/mdmfs/mdmfs.c @@ -121,7 +121,7 @@ main(int argc, char **argv) compat = true; while ((ch = getopt(argc, argv, - "a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:p:Ss:t:Uw:X")) != -1) + "a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:p:Ss:t:Uv:w:X")) != -1) switch (ch) { case 'a': argappend(&newfs_arg, "-a %s", optarg); @@ -212,6 +212,9 @@ main(int argc, char **argv) case 'U': softdep = true; break; + case 'v': + argappend(&newfs_arg, "-O %s", optarg); + break; case 'w': if (compat) usage(); |