mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs: support other sectorsizes in _scratch_mkfs_blocksized
When btrfs supports sectorsize != pagesize it can run these test cases now, generic/205 generic/206 generic/216 generic/217 generic/218 generic/220 generic/222 generic/227 generic/229 generic/238 This change is backward compatible for kernels without non pagesize sectorsize support. 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:
@@ -1124,6 +1124,15 @@ _scratch_mkfs_blocksized()
|
||||
fi
|
||||
|
||||
case $FSTYP in
|
||||
btrfs)
|
||||
test -f /sys/fs/btrfs/features/supported_sectorsizes || \
|
||||
_notrun "Subpage sectorsize support is not found in $FSTYP"
|
||||
|
||||
grep -wq $blocksize /sys/fs/btrfs/features/supported_sectorsizes || \
|
||||
_notrun "$FSTYP does not support sectorsize=$blocksize yet"
|
||||
|
||||
_scratch_mkfs --sectorsize=$blocksize
|
||||
;;
|
||||
xfs)
|
||||
_scratch_mkfs_xfs $MKFS_OPTIONS -b size=$blocksize
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user