DragonFly BSD
DragonFly bugs List (threaded) for 2012-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2334] 32/64bit problem in msdosfs


From: "G. Isenmann via Redmine" <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Mar 2012 03:28:53 -0700

Issue #2334 has been reported by G. Isenmann.

----------------------------------------
Bug #2334: 32/64bit problem in msdosfs
http://bugs.dragonflybsd.org/issues/2334

Author: G. Isenmann
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


Just noticed on 3.0.2/x86_64 that there is at least one 32/64 problem
in msdosfs:

--- sys/vfs/msdosfs/msdosfs_vfsops.c.orig       2012-03-25 11:40:42.453342000 +0200
+++ sys/vfs/msdosfs/msdosfs_vfsops.c    2012-03-25 11:40:51.693034000 +0200
@@ -542,7 +542,7 @@
                    && !bcmp(fp->fsisig3, "\0\0\125\252", 4)
                    && !bcmp(fp->fsisig4, "\0\0\125\252", 4)) {
                        pmp->pm_nxtfree = getulong(fp->fsinxtfree);
-                       if (pmp->pm_nxtfree == 0xffffffff)
+                       if (pmp->pm_nxtfree == (u_long)-1)
                                pmp->pm_nxtfree = CLUST_FIRST;
                } else
                        pmp->pm_fsinfo = 0;

Without this change I get "Next free cluster in FSInfo
(18446744073709551615) exceeds maxcluster (244833)" when I try to
mount a 8GB SDHC card on x86_64.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]