aboutsummaryrefslogtreecommitdiff
path: root/qemu-nbd.texi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-08 14:06:13 +0100
committerKevin Wolf <kwolf@redhat.com>2013-02-22 21:29:43 +0100
commitded9d2d5e247dc4d141c01bc8dc99d6ec832f9e8 (patch)
tree06aefc8a40e77716dbc1df71f0c2be60b6ab406d /qemu-nbd.texi
parenta9384aff5315e7568b6ebc171f4a482e01f06526 (diff)
downloadqemu-ded9d2d5e247dc4d141c01bc8dc99d6ec832f9e8.zip
qemu-ded9d2d5e247dc4d141c01bc8dc99d6ec832f9e8.tar.gz
qemu-ded9d2d5e247dc4d141c01bc8dc99d6ec832f9e8.tar.bz2
qemu-nbd: add --discard option
Similar to --cache and --aio, this option mimics the discard suboption of "-drive". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-nbd.texi')
-rw-r--r--qemu-nbd.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-nbd.texi b/qemu-nbd.texi
index 3e57200..5f3f3e3 100644
--- a/qemu-nbd.texi
+++ b/qemu-nbd.texi
@@ -35,6 +35,10 @@ Export QEMU disk image using NBD protocol.
@item --aio=@var{aio}
choose asynchronous I/O mode between @samp{threads} (the default)
and @samp{native} (Linux only).
+@item --discard=@var{discard}
+ toggles whether @dfn{discard} (also known as @dfn{trim} or @dfn{unmap})
+ requests are ignored or passed to the filesystem. The default is no
+ (@samp{--discard=ignore}).
@item -c, --connect=@var{dev}
connect @var{filename} to NBD device @var{dev}
@item -d, --disconnect