]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add helper function to check if btrfs is module
authorAnand Jain <Anand.Jain@oracle.com>
Wed, 15 Jun 2016 08:47:54 +0000 (16:47 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:50 +0000 (23:12 +0800)
commit595c9c88b2102c9711f6885b9ec95e9810a4df7b
tree2db55852a003aedbd27308cd07f887bb88a06652
parenta1747a7db0ad91c3b99ee1b791ef5c00aea2504a
btrfs: add helper function to check if btrfs is module

We need btrfs to be a module so that it can unloaded and reloaded,
so that we can clean up the btrfs internal in memory device list.

This patch adds _require_btrfs_unloadable() and _reload_btrfs_ko()
to help with the same.

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