From: Jason A. <ja...@co...> - 2009-01-14 23:00:01
|
In the short term, here's a short work around script. Of course, be careful... I've not tested this, but it should achieve the same effect. #!/bin/bash TREE=$1 if [ ! -d $TREE ]; then echo "$TREE is not a directory." exit fi find $TREE -not -type d | xargs rm -f rmdir -p $TREE On Wed, Jan 14, 2009 at 1:17 PM, Henry Nestler <hen...@ar...> wrote: > Tobbe Lundberg wrote: >> Running 'rm -fr' on a directory on a cofs mount doesn't seem to work >> as it should. For me it hangs (or ends up in some infinite loop) and I >> have to stop it with ^C. After stopping it the directory is still >> there. >> >> Deleting the files in the directory with 'rm *' and then deleting the >> dir with 'rmdir' works, but is a bit tedious if you want to delete an >> entire tree structure. > > Yes, it's known as bug #2359423 'cofs: "rm -r" fails on directories with > more as 200 files'. You will find in the tracker: > https://sourceforge.net/tracker/index.php?func=detail&aid=2359423&group_id=98788&atid=622063 > > -- > Henry N. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > coLinux-users mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-users > |