fstests: add module reloading helpers
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 27 Oct 2017 20:23:08 +0000 (13:23 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 3 Nov 2017 11:04:49 +0000 (19:04 +0800)
commita6ce8c2c9eb2a799a25b58175e66ca8b89e6672d
tree035f8ba660a4ea91b82b6b6e3a2cd9781a6974d3
parentced4117fb9240ee6db630dc292b8814276b65874
fstests: add module reloading helpers

Add some helper functions to require that we can reload a given
module, and add a helper to actually do that.  Refactor the existing
users to use the generics.

We need to hoist completely the behaviors of the old btrfs module
helper because we need to confirm before starting the test that we
actually can remove the module.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/btrfs
common/module [new file with mode: 0644]
common/overlay
common/rc
tests/btrfs/124
tests/btrfs/125