qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] qemu-img: Add --backing-chain option to info command
@ 2012-10-15 12:44 Stefan Hajnoczi
  2012-10-15 12:44 ` [Qemu-devel] [PATCH v2 1/3] " Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-10-15 12:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, kashyap.cv, Benoît Canet, Stefan Hajnoczi

This series adds the --backing-chain option for enumerating the backing file
chain.  Given the topmost image it will print qemu-img info information for
each image file in the chain.

Special care needs to be taken when image files form an infinite loop.  This is
very unusual, most like due to malicious image files.  Nevertheless, qemu-img
must be robust against invalid inputs so we explicit check for this.

Stefan Hajnoczi (3):
  qemu-img: Add --backing-chain option to info command
  qemu-img: Detect backing file chain infinite loops
  qemu-iotests: Add 041 backing file chain infinite loop test

 qemu-img.c                   | 115 ++++++++++++++++++++++++++++++++++---------
 tests/qemu-iotests/041       |  90 +++++++++++++++++++++++++++++++++
 tests/qemu-iotests/041.out   |  81 ++++++++++++++++++++++++++++++
 tests/qemu-iotests/common.rc |   9 ++++
 tests/qemu-iotests/group     |   1 +
 5 files changed, 274 insertions(+), 22 deletions(-)
 create mode 100755 tests/qemu-iotests/041
 create mode 100644 tests/qemu-iotests/041.out

-- 
1.7.11.7

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-10-16 14:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 12:44 [Qemu-devel] [PATCH v2 0/3] qemu-img: Add --backing-chain option to info command Stefan Hajnoczi
2012-10-15 12:44 ` [Qemu-devel] [PATCH v2 1/3] " Stefan Hajnoczi
2012-10-16 10:04   ` Kevin Wolf
2012-10-16 14:51     ` Stefan Hajnoczi
2012-10-15 12:44 ` [Qemu-devel] [PATCH v2 2/3] qemu-img: Detect backing file chain infinite loops Stefan Hajnoczi
2012-10-16 10:11   ` Kevin Wolf
2012-10-16 14:42     ` Stefan Hajnoczi
2012-10-16 14:58       ` Kevin Wolf
2012-10-15 12:44 ` [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Add 041 backing file chain infinite loop test Stefan Hajnoczi
2012-10-15 17:47   ` Eric Blake
2012-10-16  8:21     ` Stefan Hajnoczi
2012-10-16 10:22   ` Kevin Wolf
2012-10-16 14:53     ` Stefan Hajnoczi
2012-10-15 17:49 ` [Qemu-devel] [PATCH v2 0/3] qemu-img: Add --backing-chain option to info command Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).