Re: removing garbarge in file system by inode number... (conclusion)

Guest section DW (dwguest@win.tue.nl)
Mon, 1 Nov 1999 16:39:12 +0100 (MET)


Horst von Brand:

> rm(1) usually does a recursive call for handling -r (essentially a
> postorder traversal), and this can run out of space. Rewriting it for no
> recursion isn't fun, and not needed except for truly pathological cases,
> which will blow up regardless. Besides, it will soon run out of maximal
> filename length.

I once needed this and wrote deltree.c that does a "rm -r" without running
out of maximal filename length. I suppose it must still exist somewhere,
like in ftp://ftp.win.tue.nl/pub/linux-local/utils/misc/deltree.c .
If I am not mistaken, this, or similar, code is now part of GNU rm.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/