Subject: kern/23202: cannot use long filename on msdosfs
To: None <gnats-bugs@gnats.netbsd.org>
From: MOCHIDA Shuji <mochid@netside.co.jp>
List: netbsd-bugs
Date: 10/20/2003 11:35:52
>Number:         23202
>Category:       kern
>Synopsis:       cannot use long filename on msdosfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 20 02:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     MOCHIDA Shuji
>Release:        NetBSD 1.6ZD updated at Oct 17
>Organization:
>Environment:
System: NetBSD 1.6ZD NetBSD 1.6ZD (BEECH2-USBDBG) #0: Sat Oct 18 00:02:36 JST 2003  mochid@ebony:/obj/kern/i386-GENERIC-1.576/BEECH2-USBDBG i386
user land 1.6U
>Description:

I cannot use long file name with msdosfs.
mount_msdos -l returns error.

below 'f1' is 1.44MB floppy image that was formatted on MS-DOS or MS-Win95.

1.6W:

# uname -srmv
NetBSD 1.6W NetBSD 1.6W (BEECH1-ACPI) #0: Tue Aug 19 22:36:51 JST 2003  mochid@ebony:/obj/kern/i386-GENERIC-1.567/BEECH1-ACPI i386

# vnconfig -cv vnd0 f1; mount_msdos -l /dev/vnd0d /mnt
# touch /mnt/longlonglongfilename

# ls /mnt
longlonglongfilename

# umount /mnt; mount_msdos -s /dev/vnd0d /mnt; ls /mnt
longlo~1

# umount /mnt; mount_msdos /dev/vnd0d /mnt; ls /mnt
longlonglongfilename


same 'f1' image on 1.6ZD: (updated yesterday)

# uname -srmv
NetBSD 1.6ZD NetBSD 1.6ZD (BEECH2-USBDBG) #0: Sat Oct 18 00:02:36 JST 2003  mochid@ebony:/obj/kern/i386-GENERIC-1.576/BEECH2-USBDBG i386

# vnconfig -cv vnd0 f1; mount_msdos /dev/vnd0d /mnt
# ls /mnt
longlo~1

# umount /mnt; mount_msdos -l /dev/vnd0d /mnt; ls /mnt
mount_msdos: /dev/vnd0d on /mnt: Invalid argument

# mount_msdos -s /dev/vnd0d /mnt; ls /mnt
mount_msdos: /dev/vnd0d on /mnt: Invalid argument

>How-To-Repeat:
	Make FAT file system includes long name file and mount it.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: