Hi!
> If the test is executed on NFS, it may print:
> 
> rm: cannot remove `/mnt/ltp-xeJYpESVKz/acltest01.fCogoo4gn0': Directory not 
> empty
> 
> It seems the following happen:
> 
> 1. After 'unmount -d' 'acltest01.fCogoo4gn0/blkext3' is still in use by udev.
>    See kernel commit a1ecac3b0656a68259927c234e505804d33a7b83
>    ("loop: Make explicit loop device destruction lazy")
> 
> 2. Due to the "NFS silly rename" feature, command 'rm -f 
> acltest01.fCogoo4gn0/blkext3'
>    renames 'blkext3' to '.nfs*'
> 
> 3. The removal of 'acltest01.fCogoo4gn0' directory fails, because it
>    still contains this '.nfs*' file.
> 
> Intorucing a wait cycle should fix this problem.

Hmm, we may want to add this into test.sh because otherwise we will need
to carry this snippet of code in each testcase that works with loop
devices.

Would calling umount without -d and detach_device() (from tst_device.c
via apicmd) help here? (it seems to fix the very same problem, it this
function does not work, it needs to be fixed anyway)

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to