Commit [60c6ce]  Maximize  Restore  History

dup2/dup205: close all fds before tst_rmdir()

Close all open fds before calling tst_rmdir() to avoid TWARN caused by
NFS silly rename when removing temp dir.

dup205 0 TWARN : tst_rmdir: rmobj(/mnt/nfs/dupbA5J5i) failed: unlink(/mnt/nfs/dupbA5J5i/.nfs0000000000f4805b00000005) failed; errno=16: Device or resource busy

Signed-off-by: Eryu Guan <eguan@redhat.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Caspar Zhang <caspar@casparzhang.com>

Eryu Guan Eryu Guan 2013-06-24

Cyril Hrubis Cyril Hrubis 2013-06-24

changed testcases/kernel/syscalls/dup2/dup205.c
testcases/kernel/syscalls/dup2/dup205.c Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks