Re: [Nbd] [Qemu-devel] [Qemu-block] How to online resize qemu disk with nbd protocol?
- To: Wouter Verhelst <w@...112...>
- Cc: "nbd-general@lists.sourceforge.net" <nbd-general@lists.sourceforge.net>, qemu block <qemu-block@...530...>, Stefan Hajnoczi <stefanha@...17...>, "qemu-devel@...530..." <qemu-devel@...530...>, Bob Chen <a175818323@...17...>
- Subject: Re: [Nbd] [Qemu-devel] [Qemu-block] How to online resize qemu disk with nbd protocol?
- From: Alex Bligh <alex@...872...>
- Date: Sat, 14 Jan 2017 15:30:24 +0000
- Message-id: <E0773C0A-7439-4F70-8983-5199B711DB73@...872...>
- In-reply-to: <20170114144825.ma5lwhdwwzjxyfri@...3...>
- References: <CAMxP3BT7ncDLePmP7QfXMtbodJ81+9Frc01aCkipya3-BNL6AA@...18...> <e6e26ad1-3fdf-85ac-0dc4-f4027123af6b@...696...> <2EAE3C4F-58AF-4594-A284-A69D8BC3EA8F@...872...> <CAJSP0QWXF2tS5q-BpmxR9ti0osjzZCFiRxdRDho4pDBLkD3UUQ@...18...> <CAMxP3BQeUWwFLmb42=-XExRzdLe0egCaEUEF4kXLQ9khH9neWg@...18...> <90b32a89-6dd8-1f83-4f6f-01bb5479252e@...696...> <B07FDA27-AF64-4BF1-874A-9B4AF201BA8E@...872...> <20170114144825.ma5lwhdwwzjxyfri@...3...>
> On 14 Jan 2017, at 14:48, Wouter Verhelst <w@...112...> wrote:
>
> On Thu, Jan 12, 2017 at 06:56:42PM +0000, Alex Bligh wrote:
>> My preferred way to do this would be essentially to allow NBD_OPT_INFO
>> to be sent (wrapped appropriately) during the main transmission phase.
>> That would allow *any* INFO stuff to be reread.
>
> Can you go into a bit more detail how you'd see that? It feels a bit
> awkward to me, at best; but I could be missing something.
Well, the idea would be something like: NBD_CMD_INFO, use the offset
specified as the the information type, and put the INFO reply
within the reply block. I guess the client doesn't know the
length of the reply so we'd have to use structured replies
or similar. Although looking through the current info types,
I can't see why today you'd want to reread anything other than
the length, so maybe this is useless futureproofing.
--
Alex Bligh
Reply to: