mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
storage: Adjust command arglist for gluster
In order for the glusterfs boolean to be set, the pool->def->type must be VIR_STORAGE_POOL_NETFS, thus the check within virCommandNewArgList whether pool->def->type is VIR_STORAGE_POOL_FS will never be true, so remove it
This commit is contained in:
parent
38c9494878
commit
257250f764
@ -462,9 +462,7 @@ virStorageBackendFileSystemMount(virStoragePoolObjPtr pool)
|
|||||||
else if (glusterfs)
|
else if (glusterfs)
|
||||||
cmd = virCommandNewArgList(MOUNT,
|
cmd = virCommandNewArgList(MOUNT,
|
||||||
"-t",
|
"-t",
|
||||||
(pool->def->type == VIR_STORAGE_POOL_FS ?
|
virStoragePoolFormatFileSystemNetTypeToString(pool->def->source.format),
|
||||||
virStoragePoolFormatFileSystemTypeToString(pool->def->source.format) :
|
|
||||||
virStoragePoolFormatFileSystemNetTypeToString(pool->def->source.format)),
|
|
||||||
src,
|
src,
|
||||||
"-o",
|
"-o",
|
||||||
"direct-io-mode=1",
|
"direct-io-mode=1",
|
||||||
|
Loading…
Reference in New Issue
Block a user