mount with cloop-2 on 2.6.x kernel problem

"Yann Cochard" <[email protected]>
Newsgroups gmane.linux.debian.knoppix
Message-ID <[email protected]>
Hi all,

How can I mount the KNOPPIX file system found in the Knoppix image with a
2.6.x kernel? The followinf method is not working anymore:
With a 2.4.22 kernel, I downloaded and compiled cloop-2.00. Then I used to run
these commands to get access to the Knoppix image:
        mkdir mnt mnt_KNOPPIX
        mount KNOPPIX_V3.3-2004-02-16-EN.iso mnt -o loop
        insmod cloop-2.00/cloop.o file=`pwd`/mnt/KNOPPIX/KNOPPIX
        mount -r -t iso9660 /dev/cloop/0 `pwd`/mnt_KNOPPIX

With a 2.6.3 kernel, I tried to recompile cloop-2.00, but I get the errors
which are at the end of this message.

Any advice?

Thanks a lot !

Yann.

Compilation errors:
# make KERNEL_DIR=/usr/src/linux
cc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing
-fno-common -fomit-frame-pointer  -D__KERNEL__ -DMODULE -fno-builtin -nostdlib
-I/usr/src/linux/include -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h compressed_loop.c -c -o
compressed_loop.o
<command line>:138832077:26896: /usr/src/linux/include/linux/modversions.h: No
such file or directory
compressed_loop.c:45: warning: type defaults to `int' in declaration of
`EXPORT_NO_SYMBOLS'
compressed_loop.c:45: warning: data definition has no type or storage class
compressed_loop.c:47:41: missing binary operator before token "("
In file included from compressed_loop.c:71:
/usr/src/linux/include/linux/blk.h:1:2: warning: #warning this file is
obsolete, please use <linux/blkdev.h> instead
compressed_loop.c:116: error: parse error before "devfs_handle"
compressed_loop.c:116: warning: type defaults to `int' in declaration of
`devfs_handle'
compressed_loop.c:116: warning: data definition has no type or storage class
compressed_loop.c: In function `get_blksize':
compressed_loop.c:147: error: `blksize_size' undeclared (first use in this
function)
compressed_loop.c:147: error: (Each undeclared identifier is reported only once
compressed_loop.c:147: error: for each function it appears in.)
compressed_loop.c: In function `make_clo_request':
compressed_loop.c:271: warning: passing arg 2 of `blk_queue_bounce' makes
pointer from integer without a cast
compressed_loop.c:271: error: too many arguments to function `blk_queue_bounce'
compressed_loop.c:271: error: void value not ignored as it ought to be
compressed_loop.c:280: error: dereferencing pointer to incomplete type
compressed_loop.c:296: error: dereferencing pointer to incomplete type
compressed_loop.c:302: error: dereferencing pointer to incomplete type
compressed_loop.c:303: error: dereferencing pointer to incomplete type
compressed_loop.c:304: error: dereferencing pointer to incomplete type
compressed_loop.c:343: error: dereferencing pointer to incomplete type
compressed_loop.c: In function `clo_set_file':
compressed_loop.c:360: error: structure has no member named `i_dev'
compressed_loop.c: At top level:
compressed_loop.c:529: error: parse error before "kdev_t"
compressed_loop.c:531: warning: function declaration isn't a prototype
compressed_loop.c: In function `clo_set_fd':
compressed_loop.c:532: error: `cloop_num' undeclared (first use in this function)
compressed_loop.c:538: error: `arg' undeclared (first use in this function)
compressed_loop.c: In function `clo_open':
compressed_loop.c:617: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:502)
compressed_loop.c: In function `clo_close':
compressed_loop.c:636: warning: implicit declaration of function `fsync_dev'
compressed_loop.c:638: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:514)
compressed_loop.c: In function `init_module':
compressed_loop.c:675: warning: implicit declaration of function
`devfs_register_blkdev'
compressed_loop.c:682: error: `blk_size' undeclared (first use in this function)
compressed_loop.c:683: error: `blksize_size' undeclared (first use in this
function)
compressed_loop.c:684: warning: implicit declaration of function
`BLK_DEFAULT_QUEUE'
compressed_loop.c:684: warning: passing arg 1 of `blk_queue_make_request'
makes pointer from integer without a cast
compressed_loop.c:684: warning: passing arg 2 of `blk_queue_make_request' from
incompatible pointer type
compressed_loop.c:686: error: too many arguments to function `register_disk'
compressed_loop.c:688: warning: too many arguments for format
compressed_loop.c:689: warning: implicit declaration of function
`devfs_register_series'
compressed_loop.c:689: error: `DEVFS_FL_DEFAULT' undeclared (first use in this
function)
compressed_loop.c: In function `cleanup_module':
compressed_loop.c:706: warning: implicit declaration of function
`devfs_unregister_blkdev'
make: *** [compressed_loop.o] Erreur 1





-- 
___________________________________________________________________
     Yann Cochard, [email protected], http://yanncochard.com/
         Au Cactus Francophone : http://www.cactuspro.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.