mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
Enable soft updates by default for UFS2 filesystems.
Reviewed-by: Warner Losh, kib
Differential Revision: https://reviews.freebsd.org/D45201
(cherry picked from commit 61dece6d27
)
This commit is contained in:
parent
913a955bf5
commit
017d52e38a
@ -25,9 +25,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)newfs.8 8.6 (Berkeley) 5/3/95
|
||||
.\"
|
||||
.Dd October 21, 2022
|
||||
.Dd May 18, 2024
|
||||
.Dt NEWFS 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -100,6 +98,10 @@ The default format is UFS2.
|
||||
For backward compatibility.
|
||||
.It Fl U
|
||||
Enable soft updates on the new file system.
|
||||
Soft updates are enabled by default for UFS2 format file systems.
|
||||
Use
|
||||
.Xr tunefs 8
|
||||
to disable soft updates if they are not wanted.
|
||||
.It Fl a Ar maxcontig
|
||||
Specify the maximum number of contiguous blocks that will be
|
||||
laid out before forcing a rotational delay.
|
||||
|
@ -391,6 +391,9 @@ main(int argc, char *argv[])
|
||||
fprintf(stderr, "because minfree is less than %d%%\n", MINFREE);
|
||||
opt = FS_OPTSPACE;
|
||||
}
|
||||
/* Use soft updates by default for UFS2 and above */
|
||||
if (Oflag > 1)
|
||||
Uflag = 1;
|
||||
realsectorsize = sectorsize;
|
||||
if (sectorsize != DEV_BSIZE) { /* XXX */
|
||||
int secperblk = sectorsize / DEV_BSIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user