Statistics
| Branch: | Revision:

root / blockdev.c @ c1ded3dc

History | View | Annotate | Download (16.1 kB)

# Date Author Comment
5dba48a8 11/04/2010 01:52 pm Kevin Wolf

scsi-disk: Implement rerror option

This implements the rerror option for SCSI disks.

It also includes minor changes to the write path where the same code is used
that was criticized in the review for the changes to the read path required for
rerror support....

3329f07b 08/23/2010 01:11 am Gerd Hoffmann

QemuOpts: make most qemu_*_opts static

Switch tree to lookup-by-name using qemu_find_opts().
Also hook up virtfs options so qemu_find_opts works for them too.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

199630b6 07/26/2010 02:39 pm Blue Swirl

Fix -snapshot deleting images on disk change

Block device change command did not copy BDRV_O_SNAPSHOT flag. Thus
the new image did not have this flag and the file got deleted during
opening.

Fix by copying BDRV_O_SNAPSHOT flag.

Signed-off-by: Blue Swirl <>...

528f7663 07/06/2010 06:05 pm Markus Armbruster

blockdev: Clean up how readonly persists across virtual media change

Since commit cb4e5f8e, monitor command change makes the new media
readonly iff the type hint is BDRV_TYPE_CDROM, i.e. the drive was
created with media=cdrom. The intention is to avoid changing a block...

734003e6 07/06/2010 04:31 pm Anthony Liguori

Merge remote branch 'kwolf/for-anthony' into staging

dfb0acd8 07/02/2010 02:18 pm Markus Armbruster

blockdev: drive_get_by_id() is no longer used, remove

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

0c6f9c17 07/02/2010 02:18 pm Markus Armbruster

blockdev: Remove drive_get_serial()

Unused since commit 6ced55a5.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

e4700e59 07/02/2010 02:18 pm Markus Armbruster

blockdev: New drive_get_by_blockdev()

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

14bafc54 07/02/2010 02:18 pm Markus Armbruster

blockdev: Clean up automatic drive deletion

We automatically delete blockdev host parts on unplug of the guest
device. Too much magic, but we can't change that now.

The delete happens early in the guest device teardown, before the
connection to the host part is severed. Thus, the guest part's...

eb159d13 07/01/2010 08:27 pm Luiz Capitulino

Monitor: handle optional '-' arg as a bool

Historically, user monitor arguments beginning with '-' (eg. '-f')
were passed as integers down to handlers.

I've maintained this behavior in the new monitor because we didn't
have a boolean type at the very beginning of QMP. Today we have it...

3b5276b5 06/22/2010 03:38 pm Eduardo Habkost

monitor: allow device to be ejected if no disk is inserted

This changes the monitor eject_device() function to not check for
bdrv_is_inserted().

Example run where the bug manifests itself:

(output of 'info block' is stripped to include only the CD-ROM device)...

abd7f68d 06/15/2010 10:41 am Markus Armbruster

block: Move error actions from DriveInfo to BlockDriverState

That's where they belong semantically (block device host part), even
though the actions are actually executed by guest device code.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

6ab4b5ab 06/15/2010 10:41 am Markus Armbruster

block: Decouple block device "commit all" from DriveInfo

do_commit() and mux_proc_byte() iterate over the list of drives
defined with drive_init(). This misses host block devices defined by
other means. Such means don't exist now, but will be introduced later...

ac59eb95 06/15/2010 10:41 am Markus Armbruster

monitor: Make "commit FOO" complain when FOO doesn't exist

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

c9b62a7e 06/15/2010 10:41 am Markus Armbruster

blockdev: Give drives internal linkage

This is the list of drives defined with drive_init(). Hide it, so it
doesn't get abused.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

dd5b0d71 06/15/2010 10:41 am Markus Armbruster

Fix regression for "-drive file="

Empty file used to create an empty drive (no media). Since commit
9dfd7c7a, it's an error: "qemu: could not open disk image : No such
file or directory". Older versions of libvirt can choke on this.

Signed-off-by: Markus Armbruster <>...

653dbec7 06/04/2010 04:20 pm Luiz Capitulino

block: Fix serial number assignment

We should use 'dinfo->serial' length, 'serial' is a pointer, so
the serial number length is currently limited to the pointer size.

This fixes https://bugs.launchpad.net/qemu/+bug/584143 and is also
valid for stable.

Signed-off-by: Luiz Capitulino <>...

666daa68 06/04/2010 04:20 pm Markus Armbruster

blockdev: Collect block device code in new blockdev.c

Anything that moves hundreds of lines out of vl.c can't be all bad.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>