Re: [PATCH 4/6] fstests: btrfs: add helper function to check if btrfs is module

2016-06-15 Thread Anand Jain
On 06/12/2016 12:53 PM, Eryu Guan wrote: On Tue, May 17, 2016 at 10:32:08PM +0800, Anand Jain wrote: 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. It looks like a bug to me if btrfs needs to reload module

Re: [PATCH 4/6] fstests: btrfs: add helper function to check if btrfs is module

2016-06-11 Thread Eryu Guan
On Tue, May 17, 2016 at 10:32:08PM +0800, Anand Jain wrote: > 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. It looks like a bug to me if btrfs needs to reload module to clean up the device list. If a user

[PATCH 4/6] fstests: btrfs: add helper function to check if btrfs is module

2016-05-17 Thread Anand Jain
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 --- common/rc | 12