-
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
Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS
$712.98
DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED
$269.99
Dell Poweredge R640 Server | 2x Xeon Gold 6132 | 128GB | H730P | 8x HDD Trays
$1849.00
Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD
$89.99
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD
$196.95
HP ProLiant DL360 G9 2x Xeon E5-2690 V3 24 Cores 2.6GHz P440ar 32GB DDR4
$119.99
DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45
$284.00
PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB
$200.00