echo $SCRATCH_OPTIONS $* $SCRATCH_DEV
}
+_scratch_xfs_db()
+{
+ $XFS_DB_PROG "$@" $(_scratch_xfs_db_options)
+}
+
_scratch_xfs_logprint()
{
SCRATCH_OPTIONS=""
fi
command=$1
- $XFS_DB_PROG -x -c "help" $SCRATCH_DEV | grep $command > /dev/null || \
+ _scratch_xfs_db -x -c "help" | grep $command > /dev/null || \
_notrun "xfs_db $command support is missing"
}
# This will create a crc fs on $SCRATCH_DEV
_require_xfs_crc
- $XFS_DB_PROG -x -c "uuid restore" $SCRATCH_DEV 2>&1 \
+ _scratch_xfs_db -x -c "uuid restore" 2>&1 \
| grep -q "invalid UUID\|supported on V5 fs" \
&& _notrun "Userspace doesn't support meta_uuid feature"
- $XFS_DB_PROG -x -c "uuid generate" $SCRATCH_DEV >/dev/null 2>&1
+ _scratch_xfs_db -x -c "uuid generate" >/dev/null 2>&1
_scratch_mount >/dev/null 2>&1 \
|| _notrun "Kernel doesn't support meta_uuid feature"