]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
qemu-io: Add discard command
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 13 Dec 2010 09:36:26 +0000 (09:36 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (16:11 +0100)
commitedff5db1f50fd89e807f3fb518c77af7531e8117
treea8358f6905a6dd4191b99c0062742ca1d321bd0f
parentea3bd56f56822350bbb91518b3d786948f573359
qemu-io: Add discard command

discard [-Cq] off len -- discards a number of bytes at a specified
offset

 discards a range of bytes from the given offset

 Example:
 'discard 512 1k' - discards 1 kilobyte from 512 bytes into the file

 Discards a segment of the currently open file.
 -C, -- report statistics in a machine parsable format
 -q, -- quite mode, do not show I/O statistics

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c