diff options
author | Eric Blake <eblake@redhat.com> | 2016-10-14 13:33:10 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-02 09:28:55 +0100 |
commit | c8a3a1b6c4034cf53cdbd953331c72f9573edb77 (patch) | |
tree | 152c60a934b497fd819fdee9025b930727e92c44 /nbd/nbd-internal.h | |
parent | 3668328303429f3bc93ab3365c66331600b06a2d (diff) |
nbd: Share common option-sending code in client
Rather than open-coding each option request, it's easier to
have common helper functions do the work. That in turn requires
having convenient packed types for handling option requests
and replies.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1476469998-28592-9-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'nbd/nbd-internal.h')
-rw-r--r-- | nbd/nbd-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbd/nbd-internal.h b/nbd/nbd-internal.h index 99e51571a2..dd57e18833 100644 --- a/nbd/nbd-internal.h +++ b/nbd/nbd-internal.h @@ -62,7 +62,7 @@ #define NBD_REPLY_MAGIC 0x67446698 #define NBD_OPTS_MAGIC 0x49484156454F5054LL #define NBD_CLIENT_MAGIC 0x0000420281861253LL -#define NBD_REP_MAGIC 0x3e889045565a9LL +#define NBD_REP_MAGIC 0x0003e889045565a9LL #define NBD_SET_SOCK _IO(0xab, 0) #define NBD_SET_BLKSIZE _IO(0xab, 1) |