Re: "while :; do mkdir;cd mkdir;done" [2.1.71] fix

James Mastros (root@jennifer-unix.dyn.ml.org)
Tue, 9 Dec 1997 13:35:42 -0500 (EST)


On Mon, 8 Dec 1997, Andrea Arcangeli wrote:
> On Sun, 7 Dec 1997, James Mastros wrote:
> >On Sun, 7 Dec 1997, Andrea Arcangeli wrote:
> >> On Sun, 7 Dec 1997, Andrea Arcangeli wrote:
> >>
> >> >PS. How can force the deleting of a tree created without the patch? I
> >> >tried kill_file with debugfs, but then fsck attach the tree to
> >> >lost+found...
> >>
> >> Excuse me, I just find a way:
> >> while :; do mv pippo/pippo ./p; rmdir pippo; mv p/pippo pippo;rmdir p;done
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> >I tried this and (eventually) got the following
> Tried what? My underlined way to delete the directory tree I suppose.
Yep. (Same thing, but changed pippo to foo, and p to f.)

>
> >Invalid link (0xc03043d0): expected 0xc13a3988, got 0xc09c21e8
> >Filesystem panic (dev 03:01).
> >...
> >File system has been set read-only
> >
> >This was _quite a bit_ after trying this.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I don' t understand, can explain me the concept in another way? Did you
> have problem with the patch?
Didn't do the patch. My partner told me _not_ to try the
almost-infinitely-recursive directory trick, so I did it. Then I did the
reverse-recursive mv&rm (your under-carated), and several seconds after it
started to spew "mv: file not found" and "rm: file not found", I crtl-ced
the loop, and then went back to reading my mail. A couple seconds later
(while saving some messages to my linux-kernel folder), I got the above fs
panic. (I should note that "lk", the folder I was saving to, is a symlink
to "linux-kernel" -- 5.5M and growing. Time to compress it and start over
soon).

Device 03:01 is hda1, my root fs, on which I tried the 4MB dirname, a ext2 fs.

-=- James Mastros

> Andrea[s] Arcangeli

---
When the annals of distributed computing are written, and the name 'Bovine'
appears in there, I can say "Hey, I was a part of that, I checked .0012% of
the keyspace".
-=- Brian Wilson <wilsonb@mindspring.net>
Go to www.distributed.net before I come make you!