Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>
---
tests/test-btrfs-devmgt.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/test-btrfs-devmgt.sh b/tests/test-btrfs-devmgt.sh
index 5facbdb..55bc877 100755
--- a/tests/test-btrfs-devmgt.sh
+++ b/tests/test-btrfs-devmgt.sh
@@ -96,6 +96,10 @@ TEST_FSID=1c52f894-0ead-43d6-847a-d42359f78370
#TMP_FILE=''
TMP_FILE=`mktemp`
+#If the btrfs is root fs as well then set this
+CANT_CLEAN='yes'
+#CANT_CLEAN=''
+
ent_cont()
{
echo -n "Enter to continue: "
@@ -110,7 +114,7 @@ erase()
clean()
{
- modprobe -r btrfs && modprobe btrfs
+ [[ -z $CANT_CLEAN ]] && modprobe -r btrfs && modprobe btrfs
}
collect_sysfs()
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html