Subject: cannot use long filename on msdosfs
To: None <current-users@netbsd.org>
From: MOCHIDA Shuji <mochid@netside.co.jp>
List: current-users
Date: 10/18/2003 12:11:48
I cannot use long file name with msdosfs. kernel 1.6ZD updated yesterday.
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


user land:

# grep '^#.*__NetBSD_Version__' /usr/include/sys/param.h
#define __NetBSD_Version__      106210000       /* NetBSD 1.6U */


Should I send-pr?

-mochid