Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2008 10:52:10 +1000
From:      Timothy Bourke <timbob@bigpond.com>
To:        fs@freebsd.org
Subject:   msdosfs for an iriver x20
Message-ID:  <20080814005210.GB1057@triptrop.cse.unsw.EDU.AU>

next in thread | raw e-mail | index | archive | help

--SkvwRMAIpAhPCcCJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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;


--SkvwRMAIpAhPCcCJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFIo4G6tKVK1sFb0ecRAjy6AJ4qmNNUE6p0l+HrpIJHxNewCfnwqQCfY/BI
qaVromzlgIDZR5M12IXjP7w=
=F7VL
-----END PGP SIGNATURE-----

--SkvwRMAIpAhPCcCJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080814005210.GB1057>