Date: Fri, 27 Mar 2009 13:10:13 GMT From: Dmitry <hanabana@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/133123: after upgrading to version 4.0.10 port emulators/mtools still can not handle FAT partitions bigger then 4GBytes Message-ID: <200903271310.n2RDADcp000929@www.freebsd.org> Resent-Message-ID: <200903271320.n2RDK2VY004919@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903271310.n2RDADcp000929>