Fix typo
[nbd.git] / doc / proto.txt
index 61c2401..b5eeb88 100644 (file)
@@ -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
@@ -56,7 +57,7 @@ and indicates the backing file should be fdatasync()'d to disk.
 
 The top 16 bits of the request are flags. NBD_CMD_FLAG_FUA implies
 a force unit access, and can currently only be usefully combined
-with NBD_CMD_WRITE. This is implementing using sync_file_range
+with NBD_CMD_WRITE. This is implemented using sync_file_range
 if present, else by fdatasync() of that file (note not all files
 in a multifile environment). NBD_CMD_FLAG_FUA will not be set
 unless NBD_FLAG_SEND_FUA is set.