summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.8
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-12-29 12:31:18 +0000
committerkib <kib@FreeBSD.org>2010-12-29 12:31:18 +0000
commitd69a17ac0a884f83a0d321fb56d071796e6a1568 (patch)
tree8ab612371e7500ee1c3bac44a09208490c294417 /sbin/newfs/newfs.8
parent17dccd1898b6a0ddd49fcd77d7314ddc494cbac8 (diff)
downloadFreeBSD-src-d69a17ac0a884f83a0d321fb56d071796e6a1568.zip
FreeBSD-src-d69a17ac0a884f83a0d321fb56d071796e6a1568.tar.gz
Add support for FS_TRIM to user-mode UFS utilities.
Reviewed by: mckusick, pjd, pho Tested by: pho MFC after: 1 month
Diffstat (limited to 'sbin/newfs/newfs.8')
-rw-r--r--sbin/newfs/newfs.812
1 files changed, 10 insertions, 2 deletions
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8
index 10631f9..b542739 100644
--- a/sbin/newfs/newfs.8
+++ b/sbin/newfs/newfs.8
@@ -28,7 +28,7 @@
.\" @(#)newfs.8 8.6 (Berkeley) 5/3/95
.\" $FreeBSD$
.\"
-.Dd September 14, 2010
+.Dd December 9, 2010
.Dt NEWFS 8
.Os
.Sh NAME
@@ -36,7 +36,7 @@
.Nd construct a new UFS1/UFS2 file system
.Sh SYNOPSIS
.Nm
-.Op Fl EJNUln
+.Op Fl EJNUlnt
.Op Fl L Ar volname
.Op Fl O Ar filesystem-type
.Op Fl S Ar sector-size
@@ -241,6 +241,14 @@ A valid
.Ar size
value cannot be larger than the default one,
which means that the file system cannot extend into the reserved space.
+.It Fl t
+Turn on the TRIM enable flag.
+If enabled, and if the underlying device supports the BIO_DELETE
+command, the file system will send a delete request to the underlying
+device for each freed block.
+The trim enable flag is typically set when the underlying device
+uses flash-memory as the device can use the delete command to
+pre-zero or at least avoid copying blocks that have been deleted.
.El
.Pp
The following options override the standard sizes for the disk geometry.
OpenPOWER on IntegriCloud