mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Added SCRATCH_DEV_POOL to specify multiple disks for the btrfs RAID
SCRATCH_DEV takes single disk as the scratch place for testing. New
SCRATCH_DEV_POOL can used to specify multiple disks for the scratch
btrfs filesystem.
Using SCRATCH_DEV and or SCRATCH_DEV_POOL will follow the following logic.
btrfs FS OR any FS
SCRATCH_DEV_POOL is unset and SCRATCH_DEV is set
. test-case with _require_scratch_dev_pool will not run
. test-case without _require_scratch_dev_pool will run
SCRATCH_DEV_POOL is set and SCRATCH_DEV is unset
. test-case with _require_scratch_dev_pool
- runs only if FSTYP=btrfs
. test-case without _require_scratch_dev_pool will run using first
dev in the SCRATCH_DEV_POOL as a SCRATCH_DEV
- if FSTYP=btrfs it includes SCRATCH_DEV_POOL disks to the FS
- if FSTYP=non-btrfs SCRATCH_DEV_POOL is ignored
SCRATCH_DEV_POOL is set and SCRATCH_DEV is set
. reports error in the config
SCRATCH_DEV_POOL is unset and SCRATCH_DEV is unset
. no change
Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
2ef3d4e4c6
commit
27a067a7ca
@@ -34,14 +34,22 @@ Preparing system for tests (IRIX and Linux):
|
||||
- leave empty and expect this partition to be clobbered
|
||||
by some tests. If this is not provided, many tests will
|
||||
not be run.
|
||||
|
||||
(these must be two DIFFERENT partitions)
|
||||
(SCRATCH and TEST must be two DIFFERENT partitions)
|
||||
OR
|
||||
- for btrfs only: some btrfs test cases will need 3 or more independent
|
||||
SCRATCH disks which should be set using SCRATCH_DEV_POOL (for eg:
|
||||
SCRATCH_DEV_POOL="/dev/sda /dev/sdb /dev/sdc") with which
|
||||
SCRATCH_DEV should be unused by the tester, and for the legacy
|
||||
support SCRATCH_DEV will be set to the first disk of the
|
||||
SCRATCH_DEV_POOL by xfstests script.
|
||||
|
||||
- setup your environment
|
||||
- setenv TEST_DEV "device containing TEST PARTITION"
|
||||
- setenv TEST_DIR "mount point of TEST PARTITION"
|
||||
- optionally:
|
||||
- setenv SCRATCH_DEV "device containing SCRATCH PARTITION"
|
||||
- setenv SCRATCH_DEV "device containing SCRATCH PARTITION" OR
|
||||
(btrfs only) setenv SCRATCH_DEV_POOL "to 3 or more SCRATCH disks for
|
||||
testing btrfs raid concepts"
|
||||
- setenv SCRATCH_MNT "mount point for SCRATCH PARTITION"
|
||||
- setenv TAPE_DEV "tape device for testing xfsdump"
|
||||
- setenv RMT_TAPE_DEV "remote tape device for testing xfsdump"
|
||||
@@ -63,7 +71,7 @@ Preparing system for tests (IRIX and Linux):
|
||||
tape which can be overwritten.
|
||||
|
||||
- make sure $TEST_DEV is a mounted XFS partition
|
||||
- make sure that $SCRATCH_DEV contains nothing useful
|
||||
- make sure that $SCRATCH_DEV or $SCRATCH_DEV_POOL contains nothing useful
|
||||
|
||||
Running tests:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user