From 2de7692336718ab6f560f9451c327f9081faded5 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 9 Feb 2021 14:03:19 -0800 Subject: [PATCH] Unmount mount point, not device Our test unmount function unmounted the device instead of the mount point. It was written this way back in an old version of the harness which didn't track mount points. Now that we have mount points, we can just unmount that. This stops the umount command from having to search through all the current mounts looking for the mountpoint for the device it was asked to unmount. Signed-off-by: Zach Brown --- tests/funcs/fs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/funcs/fs.sh b/tests/funcs/fs.sh index 47230898..c0050ba3 100644 --- a/tests/funcs/fs.sh +++ b/tests/funcs/fs.sh @@ -129,7 +129,7 @@ t_umount() test "$nr" -lt "$T_NR_MOUNTS" || \ t_fail "fs nr $nr invalid" - eval t_quiet umount \$T_DB$i + eval t_quiet umount \$T_M$i } #