From owner-p4-projects Sat Nov 23 21:14:40 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3E55237B401; Sat, 23 Nov 2002 21:14:37 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C82D037B404 for ; Sat, 23 Nov 2002 21:14:36 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31AC843EA9 for ; Sat, 23 Nov 2002 21:14:36 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAO5BEmV032781 for ; Sat, 23 Nov 2002 21:11:14 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAO5BEVr032778 for perforce@freebsd.org; Sat, 23 Nov 2002 21:11:14 -0800 (PST) Date: Sat, 23 Nov 2002 21:11:14 -0800 (PST) Message-Id: <200211240511.gAO5BEVr032778@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 21445 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=21445 Change 21445 by rwatson@rwatson_tislabs on 2002/11/23 21:10:57 Use -v to specify the version number passed to newfs using the -O argument. -O was already occupied for mdmfs. Affected files ... .. //depot/projects/trustedbsd/mac/sbin/mdmfs/mdmfs.8#5 edit .. //depot/projects/trustedbsd/mac/sbin/mdmfs/mdmfs.c#5 edit Differences ... ==== //depot/projects/trustedbsd/mac/sbin/mdmfs/mdmfs.8#5 (text+ko) ==== @@ -50,6 +50,7 @@ .Op Fl o Ar mount-options .Op Fl p Ar permissions .Op Fl s Ar size +.Op Fl v Ar version .Op Fl w Ar user : Ns Ar group .Ar md-device .Ar mount-point @@ -69,6 +70,7 @@ .Op Fl O Ar optimization .Op Fl o Ar mount-options .Op Fl s Ar size +.Op Fl v Ar version .Ar md-device .Ar mount-point .Sh DESCRIPTION @@ -222,6 +224,14 @@ It is only really useful to negate the .Fl S flag, should such a need occur. +.It Fl v Ar version +Specify the UFS version number for use on the file system; the +default is derived from the default of the +.Xr newfs 8 +command, and may currently be one of +.Dv 1 +or +.Dv 2 . .It Fl w Ar user : Ns Ar group Set the owner and group to .Ar user ==== //depot/projects/trustedbsd/mac/sbin/mdmfs/mdmfs.c#5 (text+ko) ==== @@ -121,7 +121,7 @@ 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 @@ case 'U': softdep = true; break; + case 'v': + argappend(&mount_arg, "-O%s", optarg); + break; case 'w': if (compat) usage(); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message