generic/409-411: remove all after unbind mountpoints
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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Zorro Lang <[email protected]>--- tests/generic/409 | 1 + tests/generic/410 | 1 + tests/generic/411 | 1 + 3 files changed, 3 insertions(+)tests/generic/409 +0
-0
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 checkstests/generic/410 +1
-0@@ -56,6 +56,7 @@ _cleanup() cd / rm -f $tmp.* _clear_mount_stack + rm -rf $MNTHEAD $mpA $mpB $mpC } # get standard environment, filters and checkstests/generic/411 +1
-1@@ -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
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.
Signed-off-by Zorro Lang <[email protected]>--- 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@@ -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 becauseTEST_DIRmay 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 checkstests/generic/410 +1
-0@@ -56,6 +56,7 @@ _cleanup() cd / rm -f $tmp.* _clear_mount_stack + rm -rf $MNTHEAD $mpA $mpB $mpC } # get standard environment, filters and checkstests/generic/411 +1
-1@@ -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