opnsense-ports/archivers/py-bup/files/patch-t_test-sparse-files
Franco Fichtner 9dcac8154f */*: sync with upstream
Taken from: HardenedBSD
2018-05-25 06:42:27 +02:00

16 lines
513 B
Text

--- t/test-sparse-files.sh.orig 2017-05-14 11:27:06 UTC
+++ t/test-sparse-files.sh
@@ -31,6 +31,13 @@ if [ "$probe_size" -ge "$((data_size / 1
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