msdosfs for an iriver x20

Timothy Bourke timbob at bigpond.com
Thu Aug 14 01:11:03 UTC 2008


The iriver x20 portable media player in MSC mode is detected by the
umass driver but the internal flash memory cannot be mounted (7.6GB
FAT32 filesystem on an unsliced disk) under 6.3-RELEASE.

The msdos file system routines detect:
    pmp->pm_SecPerTrack=64 (0x40)

The patch below fixes the problem. It looks like HEAD contains more
general improvements that should also work but RELENG_6 does not.
Would it be worth MFCing the new changes or committing the attached
patch before the 6.4 release?

Tim.

--- sys/fs/msdosfs/msdosfs_vfsops.c.orig	2008-08-14 09:43:06.000000000 +1000
+++ sys/fs/msdosfs/msdosfs_vfsops.c	2008-08-14 09:43:19.000000000 +1000
@@ -504,7 +504,7 @@
 #ifdef PC98
     		|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 255) {
 #else
-		|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) {
+		|| !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 64) {
 #endif
 		error = EINVAL;
 		goto error_exit;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20080814/7ceaba8c/attachment.pgp


More information about the freebsd-fs mailing list