-
cloop 0.68 and Red Hat 7.3 problem compilation
Hi all,
I want to try the cloop module under RedHat 7.3, but when i try to compile the module i have the following error:
# make KERNEL_DIR=/usr/src/linux-2.4.18-3/
cc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer -mpreferred-stack-boundary=2 -march=i386 -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.18-3//include -DMODVERSIONS -include /usr/src/linux-2.4.18-3//include/linux/modversions.h compressed_loop.c -c -o compressed_loop.o
compressed_loop.c: In function `clo_read_from_file':
compressed_loop.c:279: too few arguments to function `do_generic_file_read_R4e76ab37'
make: *** [compressed_loop.o] Error 1
Is there anybody out there with the same problem?
Thanks in advance.
-
i have read the file compressed_loop.c and the Makefile,
i have rebuilt the module with this option -DREDHAT_KERNEL
but when i load the module i have this error:
kernel: cloop: Welcome to cloop v0.68
kernel: cloop: out of kernel mem for offsets
What's the problem?
Thanks in advance and excuse me for my english.
-
Senior Member
registered user
it could really mean out of memory. cloop stored a 4 byte offset for each 'uncompressed block' of the original device. So in the case of knoppix which I believe is compressed from some 2G(?) image divided in 64K block, it would be 30000x4(8?) memory allocated for the offsets.
Another possibility is that you tell it to mount something that is not a clooped image and it will go wild as there isn't any signature in the image.
-
hi,
if i do :
mkisofs -r /tmp|create_compressed_fs - 1024 > iso.compressed
insmod cloop file=iso.compressed
i have this error
kernel: cloop: Welcome to cloop v0.68
kernel: cloop: out of kernel mem for offsets
Instead if i do
mkisofs -r /tmp|create_compressed_fs - 65536 > iso.compressed
insmod cloop file=iso.compressed
kernel: cloop: Welcome to cloop v0.68
kernel: cloop: iso.compressed: 903 blocks, 65536 bytes/block, largest block is 65562 bytes.
kernel: cloop: loaded (max 1 devices)
Why?
1024 is a multiple of 512.
-
Senior Member
registered user
As I said, each block needs 4(or 8 ?) bytes to store the offset(and they got loaded all in-memory when you insmod cloop.o) and if you use a block size of 1024(1K), a 600M file will have 600x1K offsets. Lots of memory used. Stick to 64K block.
-
ok
Thanks........
Regards.
Lucky.
Similar Threads
-
By lrathle in forum Customising & Remastering
Replies: 2
Last Post: 09-05-2004, 05:47 PM
-
By BlakeB395 in forum Customising & Remastering
Replies: 0
Last Post: 05-27-2004, 10:57 AM
-
By bcalder in forum General Support
Replies: 5
Last Post: 03-15-2004, 09:42 PM
-
By sabel in forum Customising & Remastering
Replies: 2
Last Post: 12-01-2003, 09:15 PM
-
By arkaine23 in forum Customising & Remastering
Replies: 2
Last Post: 07-08-2003, 05:57 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

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM
$1625.00

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed
$49.99

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001
$245.00

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99

Dell Poweredge C4130 2x LGA2011-3 1U 4x GPU Rackmount Server CTO (NO CPU/NO RAM)
$299.95