]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-io: Make 'open' subcommand more like command line
authorEric Blake <eblake@redhat.com>
Sun, 8 May 2016 03:16:41 +0000 (21:16 -0600)
committerMax Reitz <mreitz@redhat.com>
Thu, 12 May 2016 13:33:24 +0000 (15:33 +0200)
commitb8d970f1a966b3c46233462879d4d5ab0bdd1712
tree113933665bd670db920a526280c51f39afb312c2
parente4e12bb26d9f2e2de02ff888063f41cc1e1b3935
qemu-io: Make 'open' subcommand more like command line

The command line defaults to BDRV_O_UNMAP, but can use
-d to reset it.  Meanwhile, the 'open' subcommand was
defaulting to no discards, with no way to set it.

The command line has both -n and -tMODE to set a variety
of cache modes, but the 'open' subcommand had only -n.

The 'open' subcommand had no way to set BDRV_O_NATIVE_AIO.

Note that the 'reopen' subcommand uses '-c' where the
command line and 'open' use -t.  Making that consistent
would be a separate patch.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 1462677405-4752-3-git-send-email-eblake@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-io.c