Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Install an older extension to fix broken USB drives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Install an older extension to fix broken USB drives
Authored by: iDG on Aug 27, '06 06:38:39AM
Two years went by, and still no fix from apple...

I found out that a lot of devices still have this limitation, for example most of the SD/MMC/CF/MS readers, the "drive mode" of palm compatible hand helds, and even some Sony Ericsson phones. The bug was not that evident two years ago, because the devices had far less storage space...

I'm able to compile msdosfs.kext again, for macos 10.4.x PPC. I've no idea about how to compile it for x86 macs...

The patch is still the same:

--- msdosfs_fat-orig.c  2006-08-27 15:34:28.000000000 +0200
+++ msdosfs_fat.c       2006-08-27 15:34:29.000000000 +0200
@@ -505,8 +505,16 @@
                }
        }
 
-       if (sp)
-               *sp = (i - findcn + 1) * pmp->pm_bpcluster;
+if 0 
+           *sp = (i - findcn + 1) * pmp->pm_bpcluster;
+else 
+       {
+       u_long calcmax=131071/pmp->pm_bpcluster;
+
+               // printf("number=%d max=%d calculated max=%d/%dn",(i - findcn + 1),numclusters,MIN(i - findcn + 1,calcmax),calcmax);
+               *sp = MIN(i - findcn + 1,calcmax) * pmp->pm_bpcluster;
+       }
+endif
 
        fc_setcache(dep, FC_LASTMAP, i, cn);


[ Reply to This | # ]