path: root/man
diff options
authorDavid Sterba <>2013-09-17 16:54:01 +0200
committerChris Mason <>2013-10-16 08:20:43 -0400
commit992fd231807d123bb8d39a26579aa2440fd57f4c (patch)
treef42995861def57d7ad00ebbf58b9bac46615a78b /man
parent15ac848f8a376d62a14d5f97ac5106f10f920c5a (diff)
btrfs-progs: add nodiscard option to device add
Same as for mkfs. Signed-off-by: David Sterba <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'man')
1 files changed, 9 insertions, 2 deletions
diff --git a/man/ b/man/
index 6c49310d..e621bc96 100644
--- a/man/
+++ b/man/
@@ -47,7 +47,7 @@ btrfs \- control a btrfs filesystem
\fBbtrfs\fP \fB[filesystem] balance status\fP [-v] \fI<path>\fP
-\fBbtrfs\fP \fBdevice add\fP \fI<device>\fP [\fI<device>...\fP] \fI<path>\fP
+\fBbtrfs\fP \fBdevice add\fP [-K] \fI<device>\fP [\fI<device>...\fP] \fI<path>\fP
\fBbtrfs\fP \fBdevice delete\fP \fI<device>\fP [\fI<device>...\fP] \fI<path>\fP
@@ -381,8 +381,15 @@ be verbose
-\fBdevice add\fR\fI <dev> \fP[\fI<dev>...\fP] \fI<path>\fR
+\fBdevice add\fR\fI [-K] <dev> \fP[\fI<dev>...\fP] \fI<path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
+If applicable, a whole device discard (TRIM) operation is performed.
+.IP "\fB-K|--nodiscard\fP" 5
+do not perform discard by default
\fBdevice delete\fR\fI <dev> \fP[\fI<dev>...\fP] \fI<path>\fR