From f65d7a3b11542177b856f6a621e12d6ec072995b Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Sun, 22 May 2011 10:58:47 +0100 Subject: [PATCH] Chnage documentation for NBD_CMD_FLUSH again. Use offset, length=0 for normal flushes. Reserve other options for later (idea from Goswin von Brederlow ) --- doc/proto.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/proto.txt b/doc/proto.txt index 61c2401..bd26657 100644 --- a/doc/proto.txt +++ b/doc/proto.txt @@ -34,8 +34,9 @@ header consists a 32 bit magic number (magic), a 32 bit field denoting the request type (see below; 'type'), a 64 bit handle ('handle'), a 64 bit data offset ('from'), and a 32 bit length ('len'). In case of a write request, the header is immediately followed by 'len' bytes of -data. In the case of NBD_CMD_FLUSH, the offset and length are -ignored. +data. In the case of NBD_CMD_FLUSH, the offset and length should +be zero (meaning "flush entire device"); other values are reserved +for future use (e.g. for flushing specific areas without a write). The reply contains three fields: a 32 bit magic number ('magic'), a 32 bit error code ('error'; 0, unless an error occurred in which case it is -- 1.7.10.4