Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359669 - app-arch/duff-0.4 can't handle >2GB size files
Summary: app-arch/duff-0.4 can't handle >2GB size files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 21:34 UTC by Jesse Adelman
Modified: 2021-09-27 05:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Adelman 2011-03-20 21:34:14 UTC
You can try any file >2GB in size.

Here's an example:

Given:
homeserver-02 CentOS-5.5-i386-bin-DVD # pwd
/data/usertmp/CentOS-5.5-i386-bin-DVD
homeserver-02 CentOS-5.5-i386-bin-DVD # ls -lah
total 4.0G
drwxr-xr-x  2 jesse users  296 Jul  9  2010 .
drwxrwx--- 10 root  users 2.4K Dec  8 00:22 ..
-rw-r--r--  1 jesse users 3.9G Jul  9  2010 CentOS-5.5-i386-bin-DVD.iso
-rw-r--r--  1 jesse users  629 Jul  9  2010 md5sum.txt
-rw-r--r--  1 jesse users  865 Jul  9  2010 md5sum.txt.asc
-rw-r--r--  1 jesse users  709 Jul  9  2010 sha1sum.txt
-rw-r--r--  1 jesse users  945 Jul  9  2010 sha1sum.txt.asc
-rw-r--r--  1 jesse users  949 Jul  9  2010 sha256sum.txt
-rw-r--r--  1 jesse users 1.2K Jul  9  2010 sha256sum.txt.asc
homeserver-02 CentOS-5.5-i386-bin-DVD #

A duff run looks like:
homeserver-02 CentOS-5.5-i386-bin-DVD # duff -raze .
./CentOS-5.5-i386-bin-DVD.iso: Value too large for defined data type
homeserver-02 CentOS-5.5-i386-bin-DVD # duff -ra .
./CentOS-5.5-i386-bin-DVD.iso: Value too large for defined data type
homeserver-02 CentOS-5.5-i386-bin-DVD # duff -r .
./CentOS-5.5-i386-bin-DVD.iso: Value too large for defined data type
homeserver-02 CentOS-5.5-i386-bin-DVD # duff .
.: directory, skipping
homeserver-02 CentOS-5.5-i386-bin-DVD # 

Thanks! If more information is needed, please ask. :)
Comment 1 Jesse Adelman 2011-03-21 02:06:45 UTC
I wrote to the upstream author, and here is the response (it's good news):

"From: Camilla Berglund <elmindreda@elmindreda.se>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
MIME-Version: 1.0
To: Jesse Adelman <jesse@boldandbusted.com>
Subject: Re: duff and 2GB+ size files?
References: <4D868A5D.4060304@boldandbusted.com>
In-Reply-To: <4D868A5D.4060304@boldandbusted.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Truedomain-Domain: elmindreda.se
X-Truedomain-SPF: No Record
X-Truedomain-DKIM: No Signature
X-Truedomain-ID: C4FDB778B5F2760609958F8CA9560640
X-Truedomain: Neutral

Jesse Adelman wrote:
> It appears that duff may not be happy checking files larger than
> 2GB.

Yup.  I've been neglecting duff for far too long.  However, the fix for 
this particular issue is already in the SF.net Git repository[1].

[1] http://sourceforge.net/scm/?type=git&group_id=138325

> If Gentoo's build recipe is wrong, or I am wrong to expect 2GB+ file
> size support, please let me know in the most gentlest of terms.

No, you're quite right to expect it.  It was an oversight on my part to 
assume that off_t was 64-bit by default on all relevant platforms.

> P.S. The development CVS repo for duff appears to have disappeared, so
> your link is broken from duff's project page.

Oups, I forgot to update the page after moving to Git.  Thank you!

I'm glad to see people still using duff.  I'll see about making a new 
release.  There's been a few additions since 0.4.

Regards,
elmindreda"

Sweet! :)
Comment 2 Anton Bolshakov 2011-04-18 06:55:45 UTC
Version 0.5 is out. Your bug request should be fixed now:
https://bugs.gentoo.org/show_bug.cgi?id=359667