On 04/04/2016 11:15 PM, Alex Bligh wrote:
On 4 Apr 2016, at 21:13, Denis V. Lunev <den@...2317...> wrote:As far as I remember that text we have had a number in request specifying which bitmap to query and the server should reply with one bitmap at a time. Would this work for you?I think that would be much better, yes, though I'd suggest the bitmap had an ID other than a number 0..15 so other people can use it too.
bitmap requires to negotiate granularity which is not that easy thing. If we have different granularities for 'dirty' and 'allocated' bitmaps and we can report this using this proto and can not do this cleanly with bitmap approach assuming that we will add 'NBD_STATE_DIRTY_DEALLOCATED' (0x2) state