libvirt: apply upstream patch to fix non-brtfs fs
This commit is contained in:
parent
761e26053b
commit
6f5d9b4ad5
2 changed files with 28 additions and 1 deletions
27
srcpkgs/libvirt/patches/fix-virFileSetCOW.patch
Normal file
27
srcpkgs/libvirt/patches/fix-virFileSetCOW.patch
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
https://www.redhat.com/archives/libvir-list/2020-August/msg00259.html
|
||||||
|
|
||||||
|
When COW is not explicitly requested to be disabled or enabled, the
|
||||||
|
function is supposed to do nothing on non-BTRFS file systems.
|
||||||
|
|
||||||
|
Fixes commit 7230bc95aa78379c9ee20cf59394c5fc4305b75b.
|
||||||
|
|
||||||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1866157
|
||||||
|
|
||||||
|
Signed-off-by: Jiri Denemark <jdenemar redhat com>
|
||||||
|
---
|
||||||
|
src/util/virfile.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git src/util/virfile.c src/util/virfile.c
|
||||||
|
index 6ada3a708c..7f22884b07 100644
|
||||||
|
--- src/util/virfile.c
|
||||||
|
+++ src/util/virfile.c
|
||||||
|
@@ -4522,7 +4522,7 @@ virFileSetCOW(const char *path,
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buf.f_type != BTRFS_SUPER_MAGIC) {
|
||||||
|
- if (state == VIR_TRISTATE_BOOL_ABSENT) {
|
||||||
|
+ if (state != VIR_TRISTATE_BOOL_ABSENT) {
|
||||||
|
virReportSystemError(ENOSYS,
|
||||||
|
_("unable to control COW flag on '%s', not btrfs"),
|
||||||
|
path);
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libvirt'
|
# Template file for 'libvirt'
|
||||||
pkgname=libvirt
|
pkgname=libvirt
|
||||||
version=6.6.0
|
version=6.6.0
|
||||||
revision=1
|
revision=2
|
||||||
build_wrksrc="build"
|
build_wrksrc="build"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_script="../configure"
|
configure_script="../configure"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue