strange behaviour with msdosfs longname option

Alexey Privalov lubeg at mail.ru
Thu May 31 07:42:25 UTC 2007


Hi all, 

have a little bit strange behaviour with msdosfs longname option..

have 1G flash card in my SE phone:

umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 3
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device 
da0: 1.000MB/s transfers
da0: 960MB (1966080 512 byte sectors: 64H 32S/T 960C)


with 'longname' option everything works fine:

> ls -l /mnt/flash/MP3/Guitar\ Chill\ Out\ Dreams/
-rw-rw-r--  1 root  wheel  11922243 30 май 11:29 01-Siesta Del Sol.mp3
-rw-rw-r--  1 root  wheel  13770667 30 май 11:18 02-What The Memories Say.mp3 
<skipped>

config line in fstab:
/dev/da0s1 /mnt/flash msdosfs rw,noauto,noexec,nosuid,longname,-m=664,-M=775,-L=ru_RU.KOI8-R,-D=CP866,-W=koi2dos 0 0


with 'longnames' option I have following:

> ls -l /mnt/flash/MP3/guitar~1/
total 170224
-rw-rw-r--  1 root  wheel  11922243 30 май 11:29 01-sie~1.mp3
-rw-rw-r--  1 root  wheel  13770667 30 май 11:18 02-wha~1.mp3

config line in fstab:
/dev/da0s1 /mnt/flash msdosfs rw,noauto,noexec,nosuid,longnames,-m=664,-M=775,-L=ru_RU.KOI8-R,-D=CP866,-W=koi2dos 0 0



most interesting that this behaviour appears only with my flash card in phone.
everything is ok in both variants with my USB stick:

da0 at umass-sim0 bus 0 target 0 lun 0
da0: <JetFlash TS1GJFV30 8.07> Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 968MB (1982464 512 byte sectors: 64H 32S/T 968C)


yeah, in the end, this 'feature' have appeared only after last rebuilding and reinstalling kernel. Now I have:

> uname -a
ontario FreeBSD 6.2-STABLE #13: Tue May 22 22:48:01 NOVST 2007


my previous kernel was:
> uname -a
ontario FreeBSD 6.2-STABLE #12: Fri Feb 23 18:35:47 NOVT 2007 


PS: and don't say me that this is only because my kernel has #13 now... ))


More information about the freebsd-fs mailing list