Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2009 13:41:13 GMT
From:      Dmitry <hanabana@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/132697: port emulators/mtools can not handle FAT partitions bigger then 4GBytes
Message-ID:  <200903161341.n2GDfD0s099794@www.freebsd.org>
Resent-Message-ID: <200903161350.n2GDo1Ar055357@freefall.freebsd.org>

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

>Number:         132697
>Category:       ports
>Synopsis:       port emulators/mtools can not handle FAT partitions bigger then 4GBytes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 16 13:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry
>Release:        7.1-STABLE
>Organization:
home
>Environment:
FreeBSD kazarov.mcm.ru 7.1-STABLE FreeBSD 7.1-STABLE #0: Sun Mar 15 20:21:45 MSK 2009     root@kazarov.mcm.ru:/var/tmp/obj/usr/src/sys/GENERIC  i386

>Description:
Port emulators/mtools can not handle FAT partitions bigger then 4GBytes.

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.
>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:



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