coreutils
coreutils copied to clipboard
rm is unable to delete deep directory structure
$ ~/.cargo/bin/coreutils
coreutils 0.0.29 (multi-call binary)
$ (for i in `seq 1 2000`; do mkdir 1234567890123456789012345678901234567890; cd 1234567890123456789012345678901234567890; done)
$ ~/.cargo/bin/coreutils rm -rf 1234567890123456789012345678901234567890
rm: cannot remove '1234567890123456789012345678901234567890': Too many open files (os error 24)
I'm not sure if this is the same problem - #5714 ?
(for comparison - gnu coreutils deals with this just fine:
$ /bin/rm -rf 1234567890123456789012345678901234567890
$ ls -ld 1234567890123456789012345678901234567890
ls: cannot access '1234567890123456789012345678901234567890': No such file or directory
)
Related to https://github.com/uutils/coreutils/issues/7324
$ (for i in
seq 1 2000; do mkdir 1234567890123456789012345678901234567890; cd 1234567890123456789012345678901234567890; done)
This test is giving me the following error:
mkdir: cannot create directory '1234567890123456789012345678901234567890': File name too long
@arekm Which filesystem are you using? (Mine is ext4; also, I was trying it out in Docker).
qemu vm, kernel 6.13.0 in guest, xfs and limit was
$ ulimit -n
1024