qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] RFC: implement reopen for nbd driver
@ 2019-09-30 21:38 Maxim Levitsky
  2019-09-30 21:38 ` [PATCH 1/1] nbd: add empty .bdrv_reopen_prepare Maxim Levitsky
  2019-09-30 22:38 ` [PATCH 0/1] RFC: implement reopen for nbd driver no-reply
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Levitsky @ 2019-09-30 21:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Maxim Levitsky, qemu-block, Max Reitz

Hi,
It looks like nbd driver doesn't have support
for reopen, which doesn't allow to commit qcow2 snapshots
which have nbd export as a base file.
This is because the base is opened read-only, and only
when commit job starts it reopens the base read-write.

Now after talking with Eric Blake, I understood that
nbd doesn't have the ability to tell the server to open read/only
and then change this on the fly, thus even when opening
an export as read-only the server will still allow writes.

This means that an empty .bdrv_reopen_prepare
(well except checking that export is not read-only) is supposed
to be enough.

Sending this as RFC, since I am not sure that this is the correct
solution.

Best regards,
	Maxim Levitsky

Maxim Levitsky (1):
  nbd: add empty .bdrv_reopen_prepare

 block/nbd.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

-- 
2.17.2



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

end of thread, other threads:[~2019-10-07 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-30 21:38 [PATCH 0/1] RFC: implement reopen for nbd driver Maxim Levitsky
2019-09-30 21:38 ` [PATCH 1/1] nbd: add empty .bdrv_reopen_prepare Maxim Levitsky
2019-10-07 10:49   ` Max Reitz
2019-09-30 22:38 ` [PATCH 0/1] RFC: implement reopen for nbd driver no-reply

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).