Skip to contentSkip to conversation

NBD patches for 2.10

GIT PULL Applied Eric Blake 2 participants 4 messages Jul 24, 2017

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

The following changes since commit cf44d31d35df3de9d4f49339254050195f777f3e:

Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-07-18-v2' into staging (2017-07-24 13:21:33 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/ericb.git tags/pull-nbd-2017-07-24

for you to fetch changes up to c2a3d7dad2e153668b5a004e4f8336da92c476e1:

maint: Reorder include directives for qemu-{nbd, io} (2017-07-24 08:53:08 -0500)

----------------------------------------------------------------
nbd patches for 2017-07-24

- Eric Blake: [0/2] Update qemu-nbd version

----------------------------------------------------------------
Eric Blake (2):
qemu-nbd: Update version string
maint: Reorder include directives for qemu-{nbd, io}

 qemu-img.c |  3 ++-
 qemu-nbd.c | 13 +++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)
Signature · 1 line
2.13.3
author
#1 lore raw

[Qemu-devel] [PULL 2/2] maint: Reorder include directives for qemu-{nbd, io}

HACKING recommends listing system includes right after osdep.h, and before any other in-project headers.

Message-Id: <[email protected]>

---
 qemu-img.c | 3 ++-
 qemu-nbd.c | 8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)
qemu-img.c +2 -1
index eb32b93e90..f4d5f0d77d 100644
@@ -22,6 +22,8 @@
  * THE SOFTWARE.
  */
 #include "qemu/osdep.h"
+#include <getopt.h>
+
 #include "qemu-version.h"
 #include "qapi/error.h"
 #include "qapi/util.h"
@@ -43,7 +45,6 @@
 #include "block/qapi.h"
 #include "crypto/init.h"
 #include "trace/control.h"
-#include <getopt.h>
 
 #define QEMU_IMG_VERSION "qemu-img version " QEMU_VERSION QEMU_PKGVERSION \
                           "\n" QEMU_COPYRIGHT "\n"
qemu-nbd.c +4 -4
index 1086934a95..b8666bb575 100644
@@ -17,6 +17,10 @@
  */
 
 #include "qemu/osdep.h"
+#include <getopt.h>
+#include <libgen.h>
+#include <pthread.h>
+
 #include "qapi/error.h"
 #include "qemu-common.h"
 #include "qemu/cutils.h"
@@ -38,10 +42,6 @@
 #include "trace/control.h"
 #include "qemu-version.h"
 
-#include <getopt.h>
-#include <libgen.h>
-#include <pthread.h>
-
 #define SOCKET_PATH                "/var/lock/qemu-nbd-%s"
 #define QEMU_NBD_OPT_CACHE         256
 #define QEMU_NBD_OPT_AIO           257
Signature · 1 line
2.13.3
author
#2 lore raw

[Qemu-devel] [PULL 1/2] qemu-nbd: Update version string

In reply to Eric Blake

qemu-io and qemu-img already mirror the qemu version string, time to make qemu-nbd do the same.

Message-Id: <[email protected]>

---
 qemu-nbd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
qemu-nbd.c +3 -2
index 78d05bea2d..1086934a95 100644
@@ -36,6 +36,7 @@
 #include "io/channel-socket.h"
 #include "crypto/init.h"
 #include "trace/control.h"
+#include "qemu-version.h"
 
 #include <getopt.h>
 #include <libgen.h>
@@ -129,10 +130,10 @@ static void usage(const char *name)
 static void version(const char *name)
 {
     printf(
-"%s version 0.0.1\n"
+"%s " QEMU_VERSION QEMU_PKGVERSION "\n"
 "Written by Anthony Liguori.\n"
 "\n"
-"Copyright (C) 2006 Anthony Liguori <[email protected]>.\n"
+QEMU_COPYRIGHT "\n"
 "This is free software; see the source for copying conditions.  There is NO\n"
 "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
     , name);
Signature · 1 line
2.13.3
#3 lore raw
In reply to Eric Blake
Quoted 17 lines · Eric Blake

The following changes since commit cf44d31d35df3de9d4f49339254050195f777f3e:

Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-07-18-v2' into staging (2017-07-24 13:21:33 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/ericb.git tags/pull-nbd-2017-07-24

for you to fetch changes up to c2a3d7dad2e153668b5a004e4f8336da92c476e1:

maint: Reorder include directives for qemu-{nbd, io} (2017-07-24 08:53:08 -0500)

----------------------------------------------------------------
nbd patches for 2017-07-24

- Eric Blake: [0/2] Update qemu-nbd version

Quoted 8 lines

----------------------------------------------------------------
Eric Blake (2):
qemu-nbd: Update version string
maint: Reorder include directives for qemu-{nbd, io}

 qemu-img.c |  3 ++-
 qemu-nbd.c | 13 +++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)

Applied, thanks.

-- PMM