diff options
author | Federico Simoncelli <fsimonce@redhat.com> | 2013-01-28 06:59:47 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-02-22 21:21:08 +0100 |
commit | 8599ea4c42c098d2657ed632ad569f7a665706a4 (patch) | |
tree | 222e583e7637c55dac0f75e86bf00be64116b092 /qemu-img.texi | |
parent | c6bb9ad198c2caa9c7c8ba360a07630b5c10e4a8 (diff) | |
download | qemu-8599ea4c42c098d2657ed632ad569f7a665706a4.tar.gz qemu-8599ea4c42c098d2657ed632ad569f7a665706a4.tar.bz2 qemu-8599ea4c42c098d2657ed632ad569f7a665706a4.zip |
qemu-img: add json output option to the check command
This option --output=[human|json] makes qemu-img check output a human
or JSON representation at the choice of the user.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.texi')
-rw-r--r-- | qemu-img.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qemu-img.texi b/qemu-img.texi index 00fca8da86..1a6c9e36f1 100644 --- a/qemu-img.texi +++ b/qemu-img.texi @@ -84,9 +84,10 @@ lists all snapshots in the given image Command description: @table @option -@item check [-f @var{fmt}] [-r [leaks | all]] @var{filename} +@item check [-f @var{fmt}] [--output=@var{ofmt}] [-r [leaks | all]] @var{filename} -Perform a consistency check on the disk image @var{filename}. +Perform a consistency check on the disk image @var{filename}. The command can +output in the format @var{ofmt} which is either @code{human} or @code{json}. If @code{-r} is specified, qemu-img tries to repair any inconsistencies found during the check. @code{-r leaks} repairs only cluster leaks, whereas |