-
Junior Member
registered user
Minor patch to compressloop utilities
This is a patch against the compressloop implementation at http://projects.openoffice.nl/downloads/compressloop/
(I use this because it doesn't need huge amounts of RAM, since you can specify the image size in advance.)
For some reason, atoi() and atol() don't like numbers greater than 2^31. (Most likely because they assume signed results???)
As a result, compressloop is limited to a maximum input image size of 2^31 (2 gigs) instead of the 2^32 (4 gigs) limit of a long.
I'm sure the best way to fix this would be to replace atoi(), but it's 1:34 AM and I want to compress UT2k3 now, so my patch to the utilities is as follows:
Code:
diff cloop/compressloop.c cloop-sectorpatch/compressloop.c
74a75
> fprintf(stderr, "\t-s sectors\t\tset number of 2048-byte sectors instead of image size in bytes\n");
105a107
> unsigned long imagesec;
111c113
< while ((optionchar=getopt(argc,argv,"b:i:I:c:Fv"))!=-1) {
---
> while ((optionchar=getopt(argc,argv,"b:s:i:I:c:Fv"))!=-1) {
119a122,125
> break;
> case 's':
> imagesec=atoi(optarg);
> imagesize=imagesec*2048;
This allows you to set the input image size in 2048-byte sectors. This gets around the atoi() limitation, and also makes compressloop easier to use in scripts with mkisofs -q -print-size
Similar Threads
-
By mathis in forum Customising & Remastering
Replies: 1
Last Post: 08-26-2004, 09:29 AM
-
By xSauronx in forum Hdd Install / Debian / Apt
Replies: 14
Last Post: 06-16-2004, 12:20 PM
-
By wolfgang_a_h in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 12-21-2003, 01:11 AM
-
By ndrake in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 09-29-2003, 02:26 AM
-
By rattler in forum General Support
Replies: 3
Last Post: 01-22-2003, 03:28 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$12.00

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

Knoppix NSM 1.2
$8.00

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.97

Hamshack Live DVD-ROM
$7.00

Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2
$8.03

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$34.42