summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-04-20 14:08:05 +0000
committerrwatson <rwatson@FreeBSD.org>2003-04-20 14:08:05 +0000
commit81d6b311020dc650aa2b900f7a08156ffecedba9 (patch)
tree612bd02cab498ba1d982b85c22c699fcaebe3844 /sbin/newfs/newfs.c
parentc805cb45353d8c42f6c2a8ec8844465513a86a4d (diff)
downloadFreeBSD-src-81d6b311020dc650aa2b900f7a08156ffecedba9.zip
FreeBSD-src-81d6b311020dc650aa2b900f7a08156ffecedba9.tar.gz
Throw the switch--change to UFS2 as our default file system format for
FreeBSD 5.1-RELEASE and later: - newfs(8) will now create UFS2 file systems unless UFS1 is specifically requested (-O1). To do this, I just twiddled the Oflag default. - sysinstall(8) will now select UFS2 as the default layout for new file systems unless specifically requested (use '1' and '2' to change the file system layout in the disk labeler). To do this, I inverted the ufs2 flag into a ufs1 flag, since ufs2 is now the default and ufs1 is the edge case. There's a slight semantic change in the key behavior: '2' no longer toggles, it changes the selection to UFS2. This is very similar to a patch David O'Brien sent me at one point, and that I couldn't find. Approved by: re (telecon) Reviewed by: mckusick, phk, bmah
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r--sbin/newfs/newfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index bf544f5..33493c8 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -116,7 +116,7 @@ static const char rcsid[] =
int Lflag; /* add a volume label */
int Nflag; /* run without writing file system */
-int Oflag = 1; /* file system format (1 => UFS1, 2 => UFS2) */
+int Oflag = 2; /* file system format (1 => UFS1, 2 => UFS2) */
int Rflag; /* regression test */
int Uflag; /* enable soft updates for file system */
quad_t fssize; /* file system size */
OpenPOWER on IntegriCloud