qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 2/2] Correct definition of NBD_CMD_FLAG_FUA
@ 2016-03-31 18:15 Alex Bligh
  2016-03-31 18:21 ` Alex Bligh
  2016-04-01  7:59 ` [Qemu-devel] [Nbd] " Wouter Verhelst
  0 siblings, 2 replies; 10+ messages in thread
From: Alex Bligh @ 2016-03-31 18:15 UTC (permalink / raw)
  To: Eric Blake, Wouter Verhelst
  Cc: nbd-general@lists.sourceforge.net, qemu-devel@nongnu.org,
	Alex Bligh

NBD_CMD_FLAG_FUA is defined as 1<<0 in the documentation, but
1<<16 in nbd.h. It is not used anywhere within the code.
1<<16 cannot work as the flags word is only 16 bits long.
It is doubtful whether anyone is using NBD_CMD_FLAG_FUA
at the moment in any case.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
---
 nbd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nbd.h b/nbd.h
index f2a32dd..53b6ca1 100644
--- a/nbd.h
+++ b/nbd.h
@@ -38,7 +38,7 @@ enum {
 };
 
 #define NBD_CMD_MASK_COMMAND 0x0000ffff
-#define NBD_CMD_FLAG_FUA (1<<16)
+#define NBD_CMD_FLAG_FUA (1 << 0)
 
 /* values for flags field */
 #define NBD_FLAG_HAS_FLAGS	(1 << 0)	/* Flags are there */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-01 10:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-31 18:15 [Qemu-devel] [PATCH 2/2] Correct definition of NBD_CMD_FLAG_FUA Alex Bligh
2016-03-31 18:21 ` Alex Bligh
2016-03-31 19:14   ` Eric Blake
2016-03-31 19:25     ` Alex Bligh
2016-03-31 20:07       ` Eric Blake
2016-03-31 20:19         ` Alex Bligh
2016-04-01  7:59 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-04-01  9:32   ` Alex Bligh
2016-04-01  9:43     ` Wouter Verhelst
2016-04-01 10:11       ` Alex Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).