mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: fix indentation in _scratch_mkfs_sized
Fix the weird indentation in _scratch_mkfs_sized. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
2967d0fabe
commit
35630aee94
@@ -941,10 +941,10 @@ _scratch_mkfs_sized()
|
||||
|
||||
case $FSTYP in
|
||||
xfs)
|
||||
def_blksz=`echo $MKFS_OPTIONS|sed -rn 's/.*-b ?size= ?+([0-9]+).*/\1/p'`
|
||||
def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-b ?size= ?+([0-9]+).*/\1/p'`
|
||||
;;
|
||||
ext2|ext3|ext4|ext4dev|udf|btrfs|reiser4|ocfs2|reiserfs)
|
||||
def_blksz=`echo $MKFS_OPTIONS| sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
|
||||
def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
|
||||
;;
|
||||
jfs)
|
||||
def_blksz=4096
|
||||
@@ -954,7 +954,6 @@ _scratch_mkfs_sized()
|
||||
[ -n "$def_blksz" ] && blocksize=$def_blksz
|
||||
[ -z "$blocksize" ] && blocksize=4096
|
||||
|
||||
|
||||
local re='^[0-9]+$'
|
||||
if ! [[ $fssize =~ $re ]] ; then
|
||||
_notrun "error: _scratch_mkfs_sized: fs size \"$fssize\" not an integer."
|
||||
|
||||
Reference in New Issue
Block a user