misc/133123: after upgrading to version 4.0.10 port emulators/mtools still can not handle FAT partitions bigger then 4GBytes

Dmitry hanabana at mail.ru
Fri Mar 27 06:20:05 PDT 2009


>Number:         133123
>Category:       misc
>Synopsis:       after upgrading to version 4.0.10 port emulators/mtools still can not handle FAT partitions bigger then 4GBytes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 27 13:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry
>Release:        7.2-PRERELEASE
>Organization:
Multicom Ltd, Moscow
>Environment:
FreeBSD kazarov.mcm.ru 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Sun Mar 22 07:17:38 MSK 2009     root at kazarov.mcm.ru:/var/tmp/obj/usr/src/sys/GENERIC  i386

>Description:
I've upgraded mtools to version 4.0.10. It still can not handle FAT partitions bigger then 4GBytes due to copmarision of 8-byte off_t variables to 4-byte size_t limits.
 
 Copying to FAT partitions with mtools fails with "Big disks not supported on this architecture" error if FAT partition is bigger then 4G.

 Attached patch fixes this problem (from ports/132697)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- llong.h.orig	2009-02-20 02:01:36.000000000 +0300
+++ llong.h	2009-03-16 16:13:24.000000000 +0300
@@ -25,7 +25,7 @@
 /* if off_t is already 64 bits, be happy, and don't worry about the
  * loff_t and llseek stuff */
 #define MT_OFF_T off_t
-#define MT_SIZE_T size_t
+#define MT_SIZE_T off_t
 #endif
 
 #ifndef MT_OFF_T


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list