diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 49cd15422a394b164b14e25c773d2a25cc66f994..856e8885b47467bc398dd8d1e873b305da7c71dc 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1544,6 +1544,10 @@ static const vshCmdOptDef opts_block_commit[] = { .type = VSH_OT_INT, .help = N_("with --wait, abort if copy exceeds timeout (in seconds)") }, + {.name = "async", + .type = VSH_OT_BOOL, + .help = N_("with --wait, don't wait for cancel to finish") + }, {.name = NULL} }; diff --git a/tools/virsh.pod b/tools/virsh.pod index 0ae51780d5d64e041fec4042a225b464ee58f37e..2864f3d55ff6b8870ebada92cd8afcc94d54ae11 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -737,7 +737,7 @@ I) will accept the MAC address printed by this command. =item B I I [I] {[I] | [I<--shallow>]} [I] [I<--delete>] -[I<--wait> [I<--verbose>] [I<--timeout> B]] +[I<--wait> [I<--verbose>] [I<--timeout> B] [I<--async>]] Reduce the length of a backing image chain, by committing changes at the top of the chain (snapshot or delta files) into backing images. By @@ -756,7 +756,10 @@ operation can be checked with B. However, if I<--wait> is specified, then this command will block until the operation completes, or cancel the operation if the optional I in seconds elapses or SIGINT is sent (usually with C). Using I<--verbose> along -with I<--wait> will produce periodic status updates. +with I<--wait> will produce periodic status updates. If job cancellation +is triggered, I<--async> will return control to the user as fast as +possible, otherwise the command may continue to block a little while +longer until the job is done cleaning up. I specifies fully-qualified path of the disk; it corresponds to a unique target name () or source file (