Fix compatibility with QEMU aio_set_fd_handler signatures in 7.0 and < 2.9

This commit is contained in:
Vitaliy Filippov
2022-12-15 19:17:17 +03:00
parent 66f14ac019
commit 3f35744052
3 changed files with 38 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ for i in "$DIR"/qemu-*-vitastor.patch "$DIR"/pve-qemu-*-vitastor.patch; do
echo '===================================================================' >> $i
echo '--- /dev/null' >> $i
echo '+++ a/block/vitastor.c' >> $i
echo '@@ -0,0 +1,'$(wc -l "$DIR"/../src/qemu_driver.c)' @@' >> $i
echo '@@ -0,0 +1,'$(wc -l "$DIR"/../src/qemu_driver.c | cut -d ' ' -f 1)' @@' >> $i
cat "$DIR"/../src/qemu_driver.c | sed 's/^/+/' >> $i
fi
done