mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-07 12:35:28 +00:00
scoutfs-tests: add remounting test helpers
Add functions to remount all the mounts, including after having removed and reinserted the module. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -157,6 +157,24 @@ t_umount_all()
|
||||
done
|
||||
}
|
||||
|
||||
t_remount_all()
|
||||
{
|
||||
t_quiet t_umount_all || t_fail "umounting all failed"
|
||||
t_quiet t_mount_all || t_fail "mounting all failed"
|
||||
}
|
||||
|
||||
t_reinsert_remount_all()
|
||||
{
|
||||
t_quiet t_umount_all || t_fail "umounting all failed"
|
||||
|
||||
t_quiet rmmod scoutfs || \
|
||||
t_fail "rmmod scoutfs failed"
|
||||
t_quiet insmod "$T_KMOD_REPO/src/scoutfs.ko" ||
|
||||
t_fail "insmod scoutfs failed"
|
||||
|
||||
t_quiet t_mount_all || t_fail "mounting all failed"
|
||||
}
|
||||
|
||||
t_trigger_path() {
|
||||
local nr="$1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user