]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add functions to set and reset required number of SCRATCH_DEV_POOL
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 23 Jun 2016 13:25:39 +0000 (21:25 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:49 +0000 (23:12 +0800)
commit3dc4411e644b593518cf26e33568fe0b9dcb6317
tree3d468f44305e7ae560f76c4d03399b96d7c695ab
parent9490edd67755a87152a8f346a6bc9cfdf10ffd26
btrfs: add functions to set and reset required number of SCRATCH_DEV_POOL

This patch provides functions
 _scratch_dev_pool_get()
 _scratch_dev_pool_put()

Which will help to set/reset SCRATCH_DEV_POOL with the required
number of devices. SCRATCH_DEV_POOL_SAVED will hold all the devices.

Usage:
  _scratch_dev_pool_get() <ndevs>
  :: do stuff

  _scratch_dev_pool_put()

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc