Subject: kern/199: msdosfs
To: None <gnats-admin>
From: Bob Kemp <rsk@ecs.soton.ac.uk>
List: netbsd-bugs
Date: 04/06/1994 05:50:03
>Number:         199
>Category:       kern
>Synopsis:       msdosfs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr  6 05:50:02 1994
>Originator:     Bob Kemp
>Organization:
	``very little''
>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 :-)


>Audit-Trail:
>Unformatted:

------------------------------------------------------------------------------