From: Tobbe L. <tob...@gm...> - 2009-01-14 12:57:36
|
Hi 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. //Tobbe |
From: Henry N. <hen...@ar...> - 2009-01-14 21:10:54
|
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. |
From: Tobbe L. <tob...@gm...> - 2009-01-14 22:46:34
|
Yes, that is the bug I'm hitting //Tobbe On Wed, Jan 14, 2009 at 10: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. > |
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 > |
From: Jason A. <ja...@co...> - 2009-01-14 22:45:53
|
I screwed it up. Go figure! #!/bin/bash TREE=$1 if [ ! -d $TREE ]; then echo "$TREE is not a directory." exit fi find $TREE -not -type d | xargs rm -f find $TREE -depth | xargs rmdir On Wed, Jan 14, 2009 at 1:27 PM, Jason Ahrens <ja...@co...> wrote: > 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 >> > |