1
The following changes since commit 834eddf22ec762839b724538c7be1d1d3b2d9d3b:
1
The following changes since commit 285278ca785f5fa9a570927e1c0958a2ca2b2150:
2
2
3
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2018-03-13 10:49:02 +0000)
3
Merge remote-tracking branch 'remotes/famz/tags/testing-pull-request' into staging (2018-10-27 19:55:08 +0100)
4
4
5
are available in the git repository at:
5
are available in the Git repository at:
6
6
7
git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request
7
git://github.com/stefanha/qemu.git tags/block-pull-request
8
8
9
for you to fetch changes up to 44acd46f60ce6f16d369cd443e77949deca56a2c:
9
for you to fetch changes up to bd54b11062c4baa7d2e4efadcf71b8cfd55311fd:
10
10
11
block: include original filename when reporting invalid URIs (2018-03-13 08:06:55 -0400)
11
nvdimm: Add docs hint for Linux driver name (2018-10-29 13:35:22 +0000)
12
12
13
----------------------------------------------------------------
13
----------------------------------------------------------------
14
Block patch
14
Pull request
15
16
No changelog entries necessary, just small tweaks.
17
15
----------------------------------------------------------------
18
----------------------------------------------------------------
16
19
17
Daniel P. Berrangé (1):
20
Kees Cook (1):
18
block: include original filename when reporting invalid URIs
21
nvdimm: Add docs hint for Linux driver name
19
22
20
block/gluster.c | 2 +-
23
Li Qiang (1):
21
block/sheepdog.c | 2 +-
24
util: aio-posix: fix a typo
22
2 files changed, 2 insertions(+), 2 deletions(-)
25
26
docs/nvdimm.txt | 5 +++--
27
util/aio-posix.c | 2 +-
28
2 files changed, 4 insertions(+), 3 deletions(-)
23
29
24
--
30
--
25
2.13.6
31
2.17.2
26
32
27
33
diff view generated by jsdifflib
New patch
1
From: Li Qiang <liq3ea@gmail.com>
1
2
3
Cc: qemu-trivial@nongnu.org
4
Signed-off-by: Li Qiang <liq3ea@gmail.com>
5
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
6
Reviewed-by: Fam Zheng <famz@redhat.com>
7
Message-id: 1538964972-3223-1-git-send-email-liq3ea@gmail.com
8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9
---
10
util/aio-posix.c | 2 +-
11
1 file changed, 1 insertion(+), 1 deletion(-)
12
13
diff --git a/util/aio-posix.c b/util/aio-posix.c
14
index XXXXXXX..XXXXXXX 100644
15
--- a/util/aio-posix.c
16
+++ b/util/aio-posix.c
17
@@ -XXX,XX +XXX,XX @@ struct AioHandler
18
19
#ifdef CONFIG_EPOLL_CREATE1
20
21
-/* The fd number threashold to switch to epoll */
22
+/* The fd number threshold to switch to epoll */
23
#define EPOLL_ENABLE_THRESHOLD 64
24
25
static void aio_epoll_disable(AioContext *ctx)
26
--
27
2.17.2
28
29
diff view generated by jsdifflib
1
From: Daniel P. Berrangé <berrange@redhat.com>
1
From: Kees Cook <keescook@chromium.org>
2
2
3
Consider passing a JSON based block driver to "qemu-img commit"
3
I spent way too much time trying to figure out why the emulated NVDIMM
4
was missing under Linux. In an effort to help others who might be looking
5
for these kinds of things in the future, include a hint.
4
6
5
$ qemu-img commit 'json:{"driver":"qcow2","file":{"driver":"gluster",\
7
Signed-off-by: Kees Cook <keescook@chromium.org>
6
"volume":"gv0","path":"sn1.qcow2",
8
Message-id: 20181018201351.GA25286@beast
7
"server":[{"type":\
9
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
8
         "tcp","host":"10.73.199.197","port":"24007"}]},}'
10
---
11
docs/nvdimm.txt | 5 +++--
12
1 file changed, 3 insertions(+), 2 deletions(-)
9
13
10
Currently it will commit the content and then report an incredibly
14
diff --git a/docs/nvdimm.txt b/docs/nvdimm.txt
11
useless error message when trying to re-open the committed image:
12
13
qemu-img: invalid URI
14
Usage: file=gluster[+transport]://[host[:port]]volume/path[?socket=...][,file.debug=N][,file.logfile=/path/filename.log]
15
16
With this fix we get:
17
18
qemu-img: invalid URI json:{"server.0.host": "10.73.199.197",
19
"driver": "gluster", "path": "luks.qcow2", "server.0.type":
20
"tcp", "server.0.port": "24007", "volume": "gv0"}
21
22
Of course the root cause problem still exists, but now we know
23
what actually needs fixing.
24
25
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
26
Reviewed-by: Eric Blake <eblake@redhat.com>
27
Message-id: 20180206105204.14817-1-berrange@redhat.com
28
Signed-off-by: Jeff Cody <jcody@redhat.com>
29
---
30
block/gluster.c | 2 +-
31
block/sheepdog.c | 2 +-
32
2 files changed, 2 insertions(+), 2 deletions(-)
33
34
diff --git a/block/gluster.c b/block/gluster.c
35
index XXXXXXX..XXXXXXX 100644
15
index XXXXXXX..XXXXXXX 100644
36
--- a/block/gluster.c
16
--- a/docs/nvdimm.txt
37
+++ b/block/gluster.c
17
+++ b/docs/nvdimm.txt
38
@@ -XXX,XX +XXX,XX @@ static int qemu_gluster_parse(BlockdevOptionsGluster *gconf,
18
@@ -XXX,XX +XXX,XX @@ Multiple vNVDIMM devices can be created if multiple pairs of "-object"
39
if (filename) {
19
and "-device" are provided.
40
ret = qemu_gluster_parse_uri(gconf, filename);
20
41
if (ret < 0) {
21
For above command line options, if the guest OS has the proper NVDIMM
42
- error_setg(errp, "invalid URI");
22
-driver, it should be able to detect a NVDIMM device which is in the
43
+ error_setg(errp, "invalid URI %s", filename);
23
-persistent memory mode and whose size is $NVDIMM_SIZE.
44
error_append_hint(errp, "Usage: file=gluster[+transport]://"
24
+driver (e.g. "CONFIG_ACPI_NFIT=y" under Linux), it should be able to
45
"[host[:port]]volume/path[?socket=...]"
25
+detect a NVDIMM device which is in the persistent memory mode and whose
46
"[,file.debug=N]"
26
+size is $NVDIMM_SIZE.
47
diff --git a/block/sheepdog.c b/block/sheepdog.c
27
48
index XXXXXXX..XXXXXXX 100644
28
Note:
49
--- a/block/sheepdog.c
50
+++ b/block/sheepdog.c
51
@@ -XXX,XX +XXX,XX @@ static void sd_parse_uri(SheepdogConfig *cfg, const char *filename,
52
53
cfg->uri = uri = uri_parse(filename);
54
if (!uri) {
55
- error_setg(&err, "invalid URI");
56
+ error_setg(&err, "invalid URI '%s'", filename);
57
goto out;
58
}
59
29
60
--
30
--
61
2.13.6
31
2.17.2
62
32
63
33
diff view generated by jsdifflib