diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index feeb06173f..02cae66830 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -2786,6 +2786,9 @@ virStorageSourceParseBackingJSONGluster(virStorageSourcePtr src, return -1; } + src->type = VIR_STORAGE_TYPE_NETWORK; + src->protocol = VIR_STORAGE_NET_PROTOCOL_GLUSTER; + if (VIR_STRDUP(src->volume, volume) < 0 || virAsprintf(&src->path, "/%s", path) < 0) return -1; diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index f7f5030daa..fd79abbaa5 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -1412,7 +1412,7 @@ mymain(void) "]" "}" "}", - "\n" + "\n" " \n" " \n" " \n" @@ -1432,7 +1432,7 @@ mymain(void) "}" "]" "}", - "\n" + "\n" " \n" " \n" " \n"