[net.bugs.4bsd] Simultaneous mv's cause crash

steve@dartvax.UUCP (Steve Campbell) (06/27/84)

Well, folks, here's one that's so simple that it's hard to belive it
could happen.  One of our users (while using learn) did the following:

mv file1 file2 & ; mv file3 file1

and guess what happened.  The system crashed with:

panic: ifree: freeing free inode

and so forth.  The damage had to be repaired with a manual fsck run.  Now
no real harm was done (other than inconveniencing some users), and granted
that the command issued might be said to tempt fate, but still, aren't
there some lockout mechanisms that should at least prevent file system
damage under these circumstances?  We run 4.2 on a 750, BTW.

Steve Campbell

	UUCP: {decvax|linus|cornell|astrovax}!dartvax!steve
	CSNET: steve@dartmouth     ARPA: steve%dartmouth@csnet-relay