opnsense-ports/archivers/py-bup/files/patch-test_ext_test-sparse-files
Franco Fichtner 39e521def0 */*: sync with upstream
Taken from: FreeBSD
2022-03-28 12:42:29 +02:00

15 lines
534 B
Text

--- test/ext/test-sparse-files.orig 2021-01-09 22:11:10 UTC
+++ test/ext/test-sparse-files
@@ -31,6 +31,12 @@ if [ "$probe_size" -ge "$((data_size / 1024))" ]; then
exit 0
fi
+if [ "$(current-filesystem)" == "zfs" ]; then
+ WVSTART "WARNING!! If zfs compression is enabled in the current " \
+ "filesytem, sparse test might fail!!. " \
+ " See https://groups.google.com/forum/#!topic/bup-list/NZCJ5wHwbFE"
+fi
+
WVSTART "sparse restore on $(current-filesystem), assuming ${block_size}B blocks"
WVPASS bup init