|
From: | Kevin Wolf |
Subject: | Re: [Qemu-devel] [PATCH 44/55] spitz tosa: Simplify "drive is suitable for microdrive" test |
Date: | Tue, 09 Aug 2011 14:10:08 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
Am 09.08.2011 13:56, schrieb Markus Armbruster: > bdrv_is_locked() is about the frontend's media lock. To make this more > obvious, my PATCH 29/55 replaces it by bdrv_dev_is_medium_locked(). It > does *not* query the backend's lock (which may not even exist!) set by > bdrv_set_locked(). This sounds wrong (the behaviour, not your analysis). Do you plan to remove bdrv_dev_is_medium_locked() as well? It is used by IDE and scsi-disk (easy to replace) and in eject_device() in blockdev.c. Maybe the 'eject' monitor command should be handled by another callback into the device. Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |