Merge pull request #569 from devimc/2020-08-25/port/noReflink

[port] image-builder: disable reflink
This commit is contained in:
Bo Chen
2020-09-04 12:50:01 -07:00
committed by GitHub

View File

@@ -324,7 +324,12 @@ format_loop() {
;;
"${xfs_format}")
mkfs.xfs -q -f -b size="${block_size}" "${device}p1"
# DAX and reflink cannot be used together!
# Explicitly disable reflink, if it fails then reflink
# is not supported and '-m reflink=0' is not needed.
if mkfs.xfs -m reflink=0 -q -f -b size="${block_size}" "${device}p1" 2>&1 | grep -q "unknown option"; then
mkfs.xfs -q -f -b size="${block_size}" "${device}p1"
fi
;;
*)