header pictures for dedicated hosting services header image of world
Guests Visit the FreeBSD Forums  •  Login to the FreeBSD Forums  •  Register for FREE

UFS2 now the default creation type on FreeBSD 5.0-CURRENT

Author
Thread       
admin
Administrator

Registered: Jan 2002
Location:
Posts: 2,631

UFS2 now the default creation type on FreeBSD 5.0-CURRENT

FreeBSD's Robert Watson says that effective today, newfs(8) and sysinstall(8) will create UFS2 file systems by default, unless explicitly specified. Users wanting to create UFS1 file systems for whatever reason (interoperability with earlier versions, etc) should be sure to employ the -O1 flag to newfs(8), or hit '1' in the label editor in sysinstall(8) to select UFS1.

[Read email announcement]
--------------------------------------------------------------------

Date: Sun, 20 Apr 2003 11:02:37 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
To: current@FreeBSD.org
Subject: HEADS UP: UFS2 now the default creation type on 5.0-CURRENT

As of today, newfs(8) and sysinstall(8) will create UFS2 file systems by
default, unless explicitly specified. Users wanting to create UFS1 file
systems for whatever reason (interoperability with earlier versions, etc)
should be sure to employ the -O1 flag to newfs(8), or hit '1' in the label
editor in sysinstall(8) to select UFS1.

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Network Associates Laboratories

---------- Forwarded message ----------
Date: Sun, 20 Apr 2003 07:08:05 -0700 (PDT)
From: Robert Watson <rwatson@FreeBSD.org>
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/sbin/newfs newfs.8 newfs.c src/usr.sbin/sysinstall install.c label.c sysinstall.h src/usr.sbin/sysinstall/help partition.hlp

rwatson 2003/04/20 07:08:05 PDT

FreeBSD src repository

Modified files:
sbin/newfs newfs.8 newfs.c
usr.sbin/sysinstall install.c label.c sysinstall.h
usr.sbin/sysinstall/help partition.hlp
Log:
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

Revision Changes Path
1.60 +1 -1 src/sbin/newfs/newfs.8
1.72 +1 -1 src/sbin/newfs/newfs.c
1.12 +14 -10 src/usr.sbin/sysinstall/help/partition.hlp
1.341 +1 -1 src/usr.sbin/sysinstall/install.c
1.137 +21 -7 src/usr.sbin/sysinstall/label.c
1.244 +1 -1 src/usr.sbin/sysinstall/sysinstall.h

 

 

04-21-2003, 12:32 AM
 
dkt
Package Ape

Join Date: Apr 2002
Posts: 230

 

Will UFS2 be faster and than UFS1?
I am expecting that UFS2 will be better.

 

 

04-21-2003, 03:18 AM
 
AVL
Mentor

Join Date: May 2002
Location: Netherlands
Posts: 1,126

From the FreeBSD 5.0-RELEASE release notes:

Quote:
Among the new features of UFS2:
- The inode has been expanded to 256 bytes to make space for 64-bit block pointers.
- A file-creation time field has been added.
- A native extended attributes implementation has been added, permitting total attribute size stored on an inode to be up to twice the filesystem block size. This storage is used for Access Control Lists and MAC labels, but may also be used by other system extensions and user applications.
__________________
Acti labores jucundi.
04-21-2003, 03:59 AM
 
dkt
Package Ape

Join Date: Apr 2002
Posts: 230


It said UFS2 has new features but it did not say has performance gain.
04-21-2003, 04:39 AM
 
oohp
BSD n00b

Join Date: Mar 2003
Location: Romania
Posts: 23


Can you use UFS2 as a root filesystem? I remember I installed 5.0R and the help in the disklabel screen said something about using ufs1 instead of ufs2 on the root partition.
04-21-2003, 05:13 AM
 
AVL
Mentor

Join Date: May 2002
Location: Netherlands
Posts: 1,126


Quote:
Originally posted by oohp
Can you use UFS2 as a root filesystem? I remember I installed 5.0R and the help in the disklabel screen said something about using ufs1 instead of ufs2 on the root partition.


Yep, this has been solved some time ago.
04-21-2003, 04:39 AM
 
SodaPhish
Port Monkey

Join Date: Jul 2002
Location: Lennox,
SD -- its pronounced
"LEE-NUKS" >:-)
Posts: 397


Does UFS2 support SoftUpdates? I googled and only found an article with Jordan Hubbard, so I tried the FBSD homepage and found http://www.freebsd.org/relnotes/CURRENT/early-adopter/x43.html, which isn't extremely helpful, it only says, "UFS2: A new UFS2 on-disk format has been added, which supports extended per-file attributes and larger file sizes."
__________________
-C
sodaphish.com
04-21-2003, 04:39 AM
 
phoenix
Moderator

Join Date: Apr 2002
Location: Kamloops,
BC, Canada
Posts: 9,235

UFS2 is UFS1 + new features. No features were lost.
__________________
Places to visit when you are stuck: The Handbook, The FAQ, man pages, mailing list archives, and the web.
04-21-2003, 04:39 AM
 

 

 

 

Looking for our FreeBSD Forums? We have moved them off our main page,just follow the link to our FreeBSD Forums page.


Copyright © 2009, WEBSERVER CONSUMER GUIDE

Privacy Policy

Please note:
(1) FreeBSD is a registered trademark of The FreeBSD Foundation.
(2) WEBSERVER CONSUMER GUIDE is in no way affiliated with The FreeBSD Foundation