# Force metadata directories off.
_scratch_xfs_force_no_metadir()
{
+ _require_non_zoned_device $SCRATCH_DEV
+ # metadir is required for when the rt device is on a zoned device
+ if [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ]; then
+ _require_non_zoned_device $SCRATCH_RTDEV
+ fi
+
# Remove any mkfs-time quota options because those are only supported
# with metadir=1
for opt in uquota gquota pquota; do
if grep -q 'metadir=' $MKFS_XFS_PROG; then
MKFS_OPTIONS="-m metadir=0 $MKFS_OPTIONS"
fi
+
+ # zoned requires metadir
+ if grep -q 'zoned=' $MKFS_XFS_PROG; then
+ MKFS_OPTIONS="-m zoned=0 $MKFS_OPTIONS"
+ fi
}
# do not run on zoned file systems