* [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices
@ 2012-11-19 15:37 Jeff Cody
2012-11-19 15:45 ` Kevin Wolf
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Cody @ 2012-11-19 15:37 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, stefanha
The host device reopen handler for raw-posix is the same as the file reopen
handler.
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
block/raw-posix.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/block/raw-posix.c b/block/raw-posix.c
index f2f0404..c7061e6 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -1409,6 +1409,9 @@ static BlockDriver bdrv_host_device = {
.bdrv_probe_device = hdev_probe_device,
.bdrv_file_open = hdev_open,
.bdrv_close = raw_close,
+ .bdrv_reopen_prepare = raw_reopen_prepare,
+ .bdrv_reopen_commit = raw_reopen_commit,
+ .bdrv_reopen_abort = raw_reopen_abort,
.bdrv_create = hdev_create,
.create_options = raw_create_options,
.bdrv_has_zero_init = hdev_has_zero_init,
--
1.7.11.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices
2012-11-19 15:37 [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices Jeff Cody
@ 2012-11-19 15:45 ` Kevin Wolf
2012-11-19 16:16 ` Jeff Cody
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Wolf @ 2012-11-19 15:45 UTC (permalink / raw)
To: Jeff Cody; +Cc: qemu-devel, stefanha
Am 19.11.2012 16:37, schrieb Jeff Cody:
> The host device reopen handler for raw-posix is the same as the file reopen
> handler.
>
> Signed-off-by: Jeff Cody <jcody@redhat.com>
> ---
> block/raw-posix.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/block/raw-posix.c b/block/raw-posix.c
> index f2f0404..c7061e6 100644
> --- a/block/raw-posix.c
> +++ b/block/raw-posix.c
> @@ -1409,6 +1409,9 @@ static BlockDriver bdrv_host_device = {
> .bdrv_probe_device = hdev_probe_device,
> .bdrv_file_open = hdev_open,
> .bdrv_close = raw_close,
> + .bdrv_reopen_prepare = raw_reopen_prepare,
> + .bdrv_reopen_commit = raw_reopen_commit,
> + .bdrv_reopen_abort = raw_reopen_abort,
> .bdrv_create = hdev_create,
> .create_options = raw_create_options,
> .bdrv_has_zero_init = hdev_has_zero_init,
>
What about host_floppy and (twice) host_cdrom?
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices
2012-11-19 15:45 ` Kevin Wolf
@ 2012-11-19 16:16 ` Jeff Cody
2012-11-19 16:19 ` Kevin Wolf
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Cody @ 2012-11-19 16:16 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-devel, stefanha
On 11/19/2012 10:45 AM, Kevin Wolf wrote:
> Am 19.11.2012 16:37, schrieb Jeff Cody:
>> The host device reopen handler for raw-posix is the same as the file reopen
>> handler.
>>
>
> What about host_floppy and (twice) host_cdrom?
>
> Kevin
>
Do we need / want reopen for floppy and/or cdrom?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices
2012-11-19 16:16 ` Jeff Cody
@ 2012-11-19 16:19 ` Kevin Wolf
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Wolf @ 2012-11-19 16:19 UTC (permalink / raw)
To: jcody; +Cc: qemu-devel, stefanha
Am 19.11.2012 17:16, schrieb Jeff Cody:
> On 11/19/2012 10:45 AM, Kevin Wolf wrote:
>> Am 19.11.2012 16:37, schrieb Jeff Cody:
>>> The host device reopen handler for raw-posix is the same as the file reopen
>>> handler.
>>>
>
>>
>> What about host_floppy and (twice) host_cdrom?
>>
>> Kevin
>>
>
> Do we need / want reopen for floppy and/or cdrom?
At least I can't see what makes it less reasonable than for host_device.
They are really just host_device with one or two additional callbacks
for handling removable media.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-19 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-19 15:37 [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices Jeff Cody
2012-11-19 15:45 ` Kevin Wolf
2012-11-19 16:16 ` Jeff Cody
2012-11-19 16:19 ` Kevin Wolf
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).