From nobody@FreeBSD.org  Mon Mar 16 13:41:14 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CAC1D1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Mar 2009 13:41: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 B81E18FC2B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Mar 2009 13:41: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 n2GDfEkS099795
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Mar 2009 13:41:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2GDfD0s099794;
	Mon, 16 Mar 2009 13:41:13 GMT
	(envelope-from nobody)
Message-Id: <200903161341.n2GDfD0s099794@www.freebsd.org>
Date: Mon, 16 Mar 2009 13:41:13 GMT
From: Dmitry <hanabana@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port emulators/mtools can not handle FAT partitions bigger then 4GBytes
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: skreuzer@exit2shell.com

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 16 13:50:00 UTC 2009
>Closed-Date:    Wed Mar 18 03:36:58 UTC 2009
>Last-Modified:  Wed Mar 18 03:36:58 UTC 2009
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 16 13:50:11 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132697 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: skreuzer@exit2shell.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/132697: port emulators/mtools can not handle FAT partitions bigger then 4GBytes
Date: Mon, 16 Mar 2009 13:50:09 UT

 Maintainer of emulators/mtools,
 
 Please note that PR ports/132697 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/132697
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Steven Kreuzer <skreuzer@exit2shell.com>
To: bug-followup@FreeBSD.org,
 hanabana@mail.ru
Cc:  
Subject: Re: ports/132697: port emulators/mtools can not handle FAT partitions bigger then 4GBytes
Date: Tue, 17 Mar 2009 16:40:40 -0400

 Thanks for the patch.
 
 It looks like mtools was recently bumped to version 4.0.10 and has  
 become an official gnu project. In addition to the code cleanup, they
 also fixed the issue of files greater then 4GB.
 
 I have opened a PR (ports/132759) with a patch to bring the port up to  
 the latest release.
 
 Thanks
 
 --
 Steven Kreuzer
 http://www.exit2shell.com/~skreuzer
 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 18 03:36:27 UTC 2009 
State-Changed-Why:  
See maintainer patch in ports/132759 for a fix. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132697 
>Unformatted:
