Subject: port-i386/6135: MSDOS Floppy disk corruption
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dpar2@cam.ac.uk>
List: netbsd-bugs
Date: 09/10/1998 13:34:39
>Number: 6135
>Category: port-i386
>Synopsis: It is possible to create two files on a MSDOS floppy with the same name.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 10 05:35:00 1998
>Last-Modified:
>Originator: Paul Ryland
>Organization:
Girton College, University of Cambridge
>Release: 19980727
>Environment:
i386, NetBSD 1.3F
System: NetBSD quartz.newn.cam.ac.uk 1.3F NetBSD 1.3F (QUARTZ) #59: Sat Aug 1 11:40:07 BST 1998 prlw1@quartz.newn.cam.ac.uk:/usr/src/sys/arch/i386/compile/QUARTZ i386
>Description:
It is possible (and easily repeateable) to create two files with the same name on a MSDOS 1.44M floppy diskette (formatted under Windows 3.1).
>How-To-Repeat:
bash-2.02# ls -al /home/dpar2/d*.tar
-rw-r--r-- 1 dpar2 wheel 716800 Sep 8 15:12 /home/dpar2/d.tar
-rw-r--r-- 1 dpar2 wheel 716800 Sep 8 15:12 /home/dpar2/d1.tar
bash-2.02# mount -t msdos /dev/fd0a /floppy/
bash-2.02# cd /floppy/
bash-2.02# ls
d1.tar d2.tar
bash-2.02# rm *
bash-2.02# cp /home/dpar2/d1.tar ./d.tar
bash-2.02# mv d.tar d1.tar
bash-2.02# cp /home/dpar2/d.tar ./d.tar
bash-2.02# ls -al
total 2816
drwxrwxrwx 1 root wheel 7168 Jan 1 1980 .
drwxr-xr-x 16 root wheel 512 Jul 28 11:15 ..
-rwxrwxrwx 1 root wheel 716800 Sep 8 15:18 d1.tar
-rwxrwxrwx 1 root wheel 716800 Sep 8 15:18 d1.tar
>Fix:
Paul Ryland
dpar2@cam.ac.uk
Girton College, University of Cambridge
>Audit-Trail:
>Unformatted: