diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-02-17 10:10:21 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-02-22 09:50:05 +0100 |
commit | fa8b7ce2c6d9ec80aa54769f2988c830d459486a (patch) | |
tree | 45a4a14597d52c6e302b9b13abbc2cd4ad333633 /qemu-nbd.c | |
parent | eb769f74205e0906bdb45eeeb332c40b50b1dcb7 (diff) | |
download | qemu-fa8b7ce2c6d9ec80aa54769f2988c830d459486a.tar.gz qemu-fa8b7ce2c6d9ec80aa54769f2988c830d459486a.tar.bz2 qemu-fa8b7ce2c6d9ec80aa54769f2988c830d459486a.zip |
qemu-nbd: don't overlap long option values with short options
When defining values for long options, the normal practice is
to start numbering from 256, to avoid overlap with the range
of valid values for short options.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c index 424e71fe0b..9ccfc130c7 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -37,13 +37,13 @@ #include <pthread.h> #define SOCKET_PATH "/var/lock/qemu-nbd-%s" -#define QEMU_NBD_OPT_CACHE 1 -#define QEMU_NBD_OPT_AIO 2 -#define QEMU_NBD_OPT_DISCARD 3 -#define QEMU_NBD_OPT_DETECT_ZEROES 4 -#define QEMU_NBD_OPT_OBJECT 5 -#define QEMU_NBD_OPT_TLSCREDS 6 -#define QEMU_NBD_OPT_IMAGE_OPTS 7 +#define QEMU_NBD_OPT_CACHE 256 +#define QEMU_NBD_OPT_AIO 257 +#define QEMU_NBD_OPT_DISCARD 258 +#define QEMU_NBD_OPT_DETECT_ZEROES 259 +#define QEMU_NBD_OPT_OBJECT 260 +#define QEMU_NBD_OPT_TLSCREDS 261 +#define QEMU_NBD_OPT_IMAGE_OPTS 262 static NBDExport *exp; static bool newproto; |