mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
image-builder: disable reflink
Disable reflink when using DAX. Reflink is a xfs feature that cannot be used together with DAX. fixes kata-containers/osbuilder#456 fixes #577 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
60770f4629
commit
f7ff6d3297
@ -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
|
||||
;;
|
||||
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user