Don't pass '-o volmode=dev' to zfs binary

I can't do volmode yet here.
This commit is contained in:
Yuriy Taraday 2015-06-25 11:37:02 +02:00
parent b92eace566
commit 69c6935c17
1 changed files with 11 additions and 0 deletions

View File

@ -36,3 +36,14 @@
if test "$with_storage_zfs" = "yes" ||
test "$with_storage_zfs" = "check"; then
--- src/storage/storage_backend_zfs.c
+++ src/storage/storage_backend_zfs.c.new
@@ -282,7 +282,7 @@
* will lookup vfs.zfs.vol.mode sysctl value
* -V -- tells to create a volume with the specified size
*/
- cmd = virCommandNewArgList(ZFS, "create", "-o", "volmode=dev",
+ cmd = virCommandNewArgList(ZFS, "create",// "-o", "volmode=dev",
"-V", NULL);
virCommandAddArgFormat(cmd, "%lluK",
VIR_DIV_UP(vol->target.capacity, 1024));