Skip to content

qemu-img: Let "info" warn and go ahead without -U

Fam Zheng qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qemu-img: Move img_open error reporting to callersqemu-img.c tests/qemu-iotests/043.out+73 -480 replies
2/2qemu-img: info: try -U automaticallyqemu-img.c tests/qemu-iotests/153.out+15 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qemu-img: Let "info" warn and go ahead without -U

v2: Add Eric's r-b lines after making suggested tweaks to commit logs and error
messages.

Management and users are accustomed to "qemu-img info" to query status of images even when they are used by guests. Since image locking was added, the -U (--force-share) option is needed for that to work. The reason has been that due to possible race with image header update, the output can be misleading.

But what are likely to happen after we emit the error are that, for interactive users, '-U' will be used and the command retried; for management (nova, RHV, etc.), the operation is broken with no knob to workaround this.

This series changes that error to a warning so that it doesn't get in the way.

Fam

Fam Zheng (2):
qemu-img: Move img_open error reporting to callers
qemu-img: info: try -U automatically

 qemu-img.c                 | 129 +++++++++++++++++++++++++++++----------------
 tests/qemu-iotests/043.out |   6 +--
 tests/qemu-iotests/153.out |   3 +-
 3 files changed, 88 insertions(+), 50 deletions(-)
Signature · 1 line
2.14.3