summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
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
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')
-rw-r--r--sbin/newfs/newfs.82
-rw-r--r--sbin/newfs/newfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8
index 57dc0b2..25d269d 100644
--- a/sbin/newfs/newfs.8
+++ b/sbin/newfs/newfs.8
@@ -89,7 +89,7 @@ without really creating the file system.
.It Fl O Ar filesystem-type
Use 1 to specify that a UFS1 format file system be built;
use 2 to specify that a UFS2 format file system be built.
-The default is UFS1 format, but will eventually be changed to UFS2.
+The default format is UFS2.
.It Fl T Ar disktype
For backward compatibility.
.It Fl U
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