From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 27 13:20:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82EC01065694 for ; Fri, 27 Mar 2009 13:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3D8398FC1C for ; Fri, 27 Mar 2009 13:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RDK29Y004920 for ; Fri, 27 Mar 2009 13:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2RDK2VY004919; Fri, 27 Mar 2009 13:20:02 GMT (envelope-from gnats) Resent-Date: Fri, 27 Mar 2009 13:20:02 GMT Resent-Message-Id: <200903271320.n2RDK2VY004919@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 615EA106564A for ; Fri, 27 Mar 2009 13:10:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4F23D8FC2B for ; Fri, 27 Mar 2009 13:10:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RDADCb000930 for ; Fri, 27 Mar 2009 13:10:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2RDADcp000929; Fri, 27 Mar 2009 13:10:13 GMT (envelope-from nobody) Message-Id: <200903271310.n2RDADcp000929@www.freebsd.org> Date: Fri, 27 Mar 2009 13:10:13 GMT From: Dmitry To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/133123: after upgrading to version 4.0.10 port emulators/mtools still can not handle FAT partitions bigger then 4GBytes X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 13:20:05 -0000 >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: