Re: [Nbd] Snapshot / resize / disconnect2 / delete
- To: Alex Bligh <alex@...872...>, nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] Snapshot / resize / disconnect2 / delete
- From: Alex Bligh <alex@...872...>
- Date: Sun, 31 Jul 2011 13:51:42 +0100
- Message-id: <B2285B54F28DD4AA67C2CA18@...873...>
- Reply-to: Alex Bligh <alex@...872...>
- In-reply-to: <79AF3CA62123125FE475F45B@...873...>
- References: <79AF3CA62123125FE475F45B@...873...>
--On 31 July 2011 13:03:36 +0100 Alex Bligh <alex@...872...> wrote:
SNAPSHOT & RESIZE will need to be implemented through adding to the
ioctl code (i.e. they will need kernel changes).
I should be clear we don't need more IOCTLs apart from for
SNAPSHOT. RESIZE would be implemented through NBD_SET_SIZE_BLOCKS.
As far as I can tell, this works just fine whilst a disk is attached,
save that the server has no knowledge of a resize. I'd do DISC2
by advertising through the flags that it is supported, and use
SETFLAGS to do a "set delete flag on disconnect".
--
Alex Bligh
Reply to: