Subject: bug in msdosfs (kernel panic)
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Bob Kemp <rsk@ecs.soton.ac.uk>
List: netbsd-bugs
Date: 04/02/1994 15:55:51
>Submitter-Id: net
>Originator: Bob Kemp
>Organization:
ECS Dept, Southampton University, UK.
>Confidential: no
>Synopsis: msdosfs
>Severity: serious
>Priority: medium
>Category: kern
>Class: sw-bug
>Release: -current 05Mar94
>Environment:
System: NetBSD allegory 0.9a ALLEGORY#0 i386
>Description:
Creating lots of directories in a DOS filesystem can produce
an incorrect filesystem or panic the kernel.
>How-To-Repeat:
mount a DOS filesystem on (say) /mnt
mkdir /mnt/zxc
cd /mnt/zxc
mkdir {q,w,e,r,t,y,u}{q,w,e,r,t,y,u}
mkdir {q,w,e,r,t,y,u}{q,w,e,r,t,y,u}/{q,w,e,r,t,y,u}{q,w,e,r,t,y,u}
# At this point, produces an error message about freeing a free block
# with a real (ie hard disc) filesystem it panics
# with a vnode filesystem it only gives an error message
NB: the filesystem was clean according to the DOS chkdsk command
_before_ I tried this.
>Fix:
Use mtools :-)
------------------------------------------------------------------------------