Skip to contentSkip to conversation

generic/409-411: remove all after unbind mountpoints

PATCH Superseded Zorro Lang 2 participants 3 messages Mar 7, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 generic/409-411: remove all after unbind mountpoints

After some shared subtrees test (bind/slave/shared/private), maybe some dentries isn't freed. For example, EBUSY maybe returned due to some bugs. This patch tries to verify that.

---
 tests/generic/409 | 1 +
 tests/generic/410 | 1 +
 tests/generic/411 | 1 +
 3 files changed, 3 insertions(+)
tests/generic/409 +1 -0
index d7c39d6..76d657f 100755
@@ -48,6 +48,7 @@ _cleanup()
 	cd /
 	rm -f $tmp.*
 	_clear_mount_stack
+	rm -rf $MNTHEAD $mpA $mpB $mpC $mpD
 }
 
 # get standard environment, filters and checks
tests/generic/410 +1 -0
index e627cfe..f39b4fe 100755
@@ -56,6 +56,7 @@ _cleanup()
 	cd /
 	rm -f $tmp.*
 	_clear_mount_stack
+	rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
tests/generic/411 +1 -0
index 414d3a5..e6afaf9 100755
@@ -37,6 +37,7 @@ _cleanup()
 	cd /
 	rm -f $tmp.*
 	_clear_mount_stack
+	rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
Signature · 1 line
2.7.4
#1 lore raw
Quoted 16 lines · Zorro Lang

After some shared subtrees test (bind/slave/shared/private), maybe some dentries isn't freed. For example, EBUSY maybe returned due to some bugs. This patch tries to verify that.

---
 tests/generic/409 | 1 +
 tests/generic/410 | 1 +
 tests/generic/411 | 1 +
 3 files changed, 3 insertions(+)
tests/generic/409 +0 -0
index d7c39d6..76d657f 100755

tests/generic/409 _cleanup() · line 51

Quoted 4 lines
tests/generic/409 +1 -0
@@ -48,6 +48,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC $mpD

$mp* are under $MNTHEAD, so why bother listing them here?

It would be wise to also rm -rf $MNTHEAD before mkdir $MNTHEAD or at least mkdir -p $MNTHEAD.
rm -rf is better because TEST_DIR may have a file by that name (e.g. from failure to cleanup after generic/247).

Quoted 34 lines
tests/generic/409 +0 -0
 }
 
 # get standard environment, filters and checks
tests/generic/410 +1 -0
index e627cfe..f39b4fe 100755
@@ -56,6 +56,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
tests/generic/411 +1 -1
index 414d3a5..e6afaf9 100755
@@ -37,6 +37,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
--

2.7.4

--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 12 lines · Amir Goldstein
Quoted 11 lines · Zorro Lang

After some shared subtrees test (bind/slave/shared/private), maybe some dentries isn't freed. For example, EBUSY maybe returned due to some bugs. This patch tries to verify that.

---
 tests/generic/409 | 1 +
 tests/generic/410 | 1 +
 tests/generic/411 | 1 +
 3 files changed, 3 insertions(+)
Quoted 11 lines

tests/generic/409 _cleanup() · line 51

Quoted 9 lines
tests/generic/409 +1 -0
index d7c39d6..76d657f 100755
@@ -48,6 +48,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC $mpD

$mp* are under $MNTHEAD, so why bother listing them here?

Wow yes ;)

Quoted 5 lines

It would be wise to also rm -rf $MNTHEAD before mkdir $MNTHEAD or at least mkdir -p $MNTHEAD.
rm -rf is better because TEST_DIR may have a file by that name (e.g. from failure to cleanup after generic/247).

Hmm.. sure I can remove them incidentally in this patch.

Thanks,
Zorro

Quoted 39 lines
Quoted 31 lines
tests/generic/409 +0 -0
 }
 
 # get standard environment, filters and checks
tests/generic/410 +1 -0
index e627cfe..f39b4fe 100755
@@ -56,6 +56,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
tests/generic/411 +1 -1
index 414d3a5..e6afaf9 100755
@@ -37,6 +37,7 @@ _cleanup()
        cd /
        rm -f $tmp.*
        _clear_mount_stack
+       rm -rf $MNTHEAD $mpA $mpB $mpC
 }
 
 # get standard environment, filters and checks
--

2.7.4

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html