]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
Added SCRATCH_DEV_POOL to specify multiple disks for the btrfs RAID
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 20 Oct 2011 15:41:19 +0000 (23:41 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Nov 2011 21:04:41 +0000 (21:04 +0000)
commit27a067a7cadf8e3b0795b35403b7f779e224cd40
tree90f4eb32e6c4339ccc9ad69ba4b1cf3f18f66aa3
parent2ef3d4e4c65ade05c5e90405bcc165de460ac80f
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>
README
common.config
common.rc