mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: fix _scratch_mkfs_blocksized indentation
No function change. Fix indentation. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -1116,42 +1116,44 @@ _scratch_mkfs_geom()
|
|||||||
# _scratch_mkfs_blocksized blocksize
|
# _scratch_mkfs_blocksized blocksize
|
||||||
_scratch_mkfs_blocksized()
|
_scratch_mkfs_blocksized()
|
||||||
{
|
{
|
||||||
local blocksize=$1
|
local blocksize=$1
|
||||||
|
|
||||||
local re='^[0-9]+$'
|
local re='^[0-9]+$'
|
||||||
if ! [[ $blocksize =~ $re ]] ; then
|
if ! [[ $blocksize =~ $re ]] ; then
|
||||||
_notrun "error: _scratch_mkfs_sized: block size \"$blocksize\" not an integer."
|
_notrun "error: _scratch_mkfs_sized: block size \"$blocksize\" not an integer."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $FSTYP in
|
case $FSTYP in
|
||||||
btrfs)
|
btrfs)
|
||||||
test -f /sys/fs/btrfs/features/supported_sectorsizes || \
|
test -f /sys/fs/btrfs/features/supported_sectorsizes || \
|
||||||
_notrun "Subpage sectorsize support is not found in $FSTYP"
|
_notrun "Subpage sectorsize support is not found in $FSTYP"
|
||||||
|
|
||||||
grep -wq $blocksize /sys/fs/btrfs/features/supported_sectorsizes || \
|
grep -wq $blocksize /sys/fs/btrfs/features/supported_sectorsizes || \
|
||||||
_notrun "$FSTYP does not support sectorsize=$blocksize yet"
|
_notrun "$FSTYP does not support sectorsize=$blocksize yet"
|
||||||
|
|
||||||
_scratch_mkfs --sectorsize=$blocksize
|
_scratch_mkfs --sectorsize=$blocksize
|
||||||
;;
|
;;
|
||||||
xfs)
|
xfs)
|
||||||
_scratch_mkfs_xfs $MKFS_OPTIONS -b size=$blocksize
|
_scratch_mkfs_xfs $MKFS_OPTIONS -b size=$blocksize
|
||||||
;;
|
;;
|
||||||
ext2|ext3|ext4)
|
ext2|ext3|ext4)
|
||||||
${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV
|
${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV
|
||||||
;;
|
;;
|
||||||
gfs2)
|
gfs2)
|
||||||
${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS -O -b $blocksize $SCRATCH_DEV
|
${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS -O -b $blocksize $SCRATCH_DEV
|
||||||
;;
|
;;
|
||||||
ocfs2)
|
ocfs2)
|
||||||
yes | ${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize -C $blocksize $SCRATCH_DEV
|
yes | ${MKFS_PROG} -t $FSTYP -F $MKFS_OPTIONS -b $blocksize \
|
||||||
;;
|
-C $blocksize $SCRATCH_DEV
|
||||||
bcachefs)
|
;;
|
||||||
${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS --block_size=$blocksize $SCRATCH_DEV
|
bcachefs)
|
||||||
;;
|
${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS --block_size=$blocksize \
|
||||||
*)
|
$SCRATCH_DEV
|
||||||
_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_blocksized"
|
;;
|
||||||
;;
|
*)
|
||||||
esac
|
_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_blocksized"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_scratch_resvblks()
|
_scratch_resvblks()
|
||||||
|
|||||||
Reference in New Issue
Block a user