fuel-octane/deploy/libvirt.patch
Yuriy Taraday 69c6935c17 Don't pass '-o volmode=dev' to zfs binary
I can't do volmode yet here.
2015-06-25 11:37:02 +02:00

50 lines
1.6 KiB
Diff

--- tests/storagepoolxml2xmltest.c
+++ tests/storagepoolxml2xmltest.c.new
@@ -106,8 +106,8 @@
DO_TEST("pool-gluster-sub");
DO_TEST("pool-scsi-type-scsi-host-stable");
#ifdef WITH_STORAGE_ZFS
- DO_TEST("pool-zfs");
- DO_TEST("pool-zfs-sourcedev");
+// DO_TEST("pool-zfs");
+// DO_TEST("pool-zfs-sourcedev");
#endif
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
--- debian/rules
+++ debian/rules.new
@@ -76,6 +76,7 @@
$(WITH_POLKIT) \
$(WITH_UDEV) \
--with-storage-fs \
+ --with-storage-zfs \
$(WITH_STORAGE_LVM) \
$(WITH_STORAGE_ISCSI) \
$(WITH_STORAGE_DISK) \
--- configure.ac
+++ configure.ac.new
@@ -1977,9 +1977,9 @@
with_storage_zfs=$with_freebsd
fi
-if test "$with_storage_zfs" = "yes" && test "$with_freebsd" = "no"; then
- AC_MSG_ERROR([The ZFS storage driver can be enabled on FreeBSD only.])
-fi
+#if test "$with_storage_zfs" = "yes" && test "$with_freebsd" = "no"; then
+ #AC_MSG_ERROR([The ZFS storage driver can be enabled on FreeBSD only.])
+#fi
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));