From nobody@FreeBSD.org  Fri Mar 27 13:10: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 615EA106564A
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <hanabana@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: after upgrading to version 4.0.10 port emulators/mtools still can not handle FAT partitions bigger then 4GBytes
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         133123
>Category:       ports
>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:    skreuzer
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 27 13:20:01 UTC 2009
>Closed-Date:    Tue Apr 07 17:29:34 UTC 2009
>Last-Modified:  Tue Apr  7 17:40:01 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 27 13:28:45 UTC 2009 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133123 
Responsible-Changed-From-To: freebsd-ports-bugs->skreuzer 
Responsible-Changed-By: pav 
Responsible-Changed-When: Mon Mar 30 21:25:22 UTC 2009 
Responsible-Changed-Why:  
Assign to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133123 
State-Changed-From-To: open->closed 
State-Changed-By: skreuzer 
State-Changed-When: Tue Apr 7 17:29:33 UTC 2009 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/133123: commit references a PR
Date: Tue,  7 Apr 2009 17:36:45 +0000 (UTC)

 skreuzer    2009-04-07 17:28:52 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/mtools     Makefile 
   Log:
   Handle FAT partitions bigger then 4GBytes
   
   PR:             ports/133123
   Submitted by:   Dmitry <hanabana@mail.ru>
   Approved by:    wxs (mentor)
   
   Revision  Changes    Path
   1.69      +4 -0      ports/emulators/mtools/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
