If the test is executed on NFS, it may fail with: /dev/loop0 on /tmpdir/tacl/mount-ext3 type ext3 (rw,acl,user_xattr) loop: can't delete device /dev/loop0: No such device or address rm: cannot remove `/tmpdir/tacl': Directory not empty loop: can't delete device /dev/loop0: No such device or address rm: cannot remove `/tmpdir/tacl/.nfs00000000000262fd00000115': Device or resource busy
I suppose that this happens because of kernel commit: commit a1ecac3b0656a68259927c234e505804d33a7b83 Author: Dave Chinner <dchin...@redhat.com> Date: Fri Sep 28 10:42:23 2012 +0200 loop: Make explicit loop device destruction lazy To cope with this test case failure I introduced a 'sync'. And 'losetup -d' seems to be unnecessary, because of 'umount -d' before it Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com> --- testcases/kernel/fs/acls/acl_test01 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 index af65213..9568918 100755 --- a/testcases/kernel/fs/acls/acl_test01 +++ b/testcases/kernel/fs/acls/acl_test01 @@ -89,7 +89,7 @@ do_cleanup() { rm -f $FILE_ACL > /dev/null 2>&1 rm -f $FILE_ACL_LINK > /dev/null 2>&1 mount | grep "$TMP/tacl/mount-ext3" && umount -d $TMP/tacl/mount-ext3 - [ "x$LOOP_DEV" != x ] && losetup -d $LOOP_DEV + sync rm -rf $TMP/tacl } -- 1.7.1 ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list