QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1119|回复: 8

挂载iso文件的问题,请教。(向多位帮助和指导我的人致歉)

[复制链接]
发表于 2004-4-9 02:19:45 | 显示全部楼层 |阅读模式
[root@hell tmp]# mount -o loop yarrow-i386-disc1.iso /mnt/disk
ioctl: LOOP_SET_FD: 无效的参数

要如何挂载iso文件啊

怎么会参数无效呢???

我的核心是[root@hell tmp]# uname -r
2.4.22-1.2174.nptl

请各位大侠指教。。。。。。。。谢先

   对不起,我这个iso文件是在ntfs格式下,我把它cp到reiserfs下就可以正常mount了,情况没说明清楚,给各位带来困扰了,严重致歉!!!
发表于 2004-4-9 02:23:43 | 显示全部楼层
iso文件的路徑還沒給呢。
回复

使用道具 举报

 楼主| 发表于 2004-4-9 02:49:10 | 显示全部楼层
我就在iso文件目录下面,用不着给路径了

如果路径不对的话,也会提示“找不到文件”之类的吧?
回复

使用道具 举报

 楼主| 发表于 2004-4-9 03:13:43 | 显示全部楼层
[root@hell root]# mount -o loop /mnt/tmp/yarrow-i386-disc1.iso /mnt/disk
ioctl: LOOP_SET_FD: 无效的参数

情况是一样的。。。。。。

昏,这到底是怎么回事啊,难道这也是核心不支持啊
回复

使用道具 举报

发表于 2004-4-9 04:12:11 | 显示全部楼层
  到 google 上找找看吧,这种情况从没有遇到过,不是路径的问题。
回复

使用道具 举报

发表于 2004-4-9 05:21:45 | 显示全部楼层
内核没有loopback device support ,这是用来支持loop的。
到内核相应的device目录下,找到loop.c,运行
cc loop.c -o loop.o
再把loop.o放到modules目录,加载就可以了。
回复

使用道具 举报

发表于 2004-4-9 07:53:42 | 显示全部楼层
以root身份登录。运行ntsysv 把rawdevice服务给选 上。然后重启一下或是在init.d里打开这个服务。试一下。
回复

使用道具 举报

 楼主| 发表于 2004-4-9 21:10:16 | 显示全部楼层
两位大侠的方案我都试了

bluedata的办法[quote:90b6bc4da2="Bluedata"]内核没有loopback device support ,这是用来支持loop的。
到内核相应的device目录下,找到loop.c,运行
cc loop.c -o loop.o
再把loop.o放到modules目录,加载就可以了。[/quote]

我试了以后,出现一大段错误。。。。。
。。。。。。。。。。。。
/usr/include/linux/blkdev.h:26: error: field `table' has incomplete type
/usr/include/linux/blkdev.h:35: error: syntax error before "kdev_t"
/usr/include/linux/blkdev.h:51: error: syntax error before '}' token
In file included from /usr/include/linux/blk.h:4,
                 from loop.c:71:
/usr/include/linux/blkdev.h:64: error: syntax error before "dev"
/usr/include/linux/blkdev.h:66: error: syntax error before "kdev_t"
/usr/include/linux/blkdev.h:80: error: field `request_freelist' has incomplete type
/usr/include/linux/blkdev.h:81: error: field `pending_freelist' has incomplete type
/usr/include/linux/blkdev.h:87: error: field `queue_head' has incomplete type
/usr/include/linux/blkdev.h:88: error: field `elevator' has incomplete type
/usr/include/linux/blkdev.h:132: error: syntax error before "spinlock_t"
/usr/include/linux/blkdev.h:145: error: syntax error before "u64"
/usr/include/linux/blkdev.h:170: error: field `request_queue' has incomplete type
/usr/include/linux/blkdev.h:190: error: syntax error before "kdev_t"
/usr/include/linux/blkdev.h:192: error: syntax error before "dev"
/usr/include/linux/blkdev.h:193: error: syntax error before "dev"
/usr/include/linux/blkdev.h:217: error: syntax error before "blk_buffers_wait"
/usr/include/linux/blkdev.h:218: error: syntax error before "queued_sectors"
/usr/include/linux/blkdev.h:233: error: syntax error before "dev"
/usr/include/linux/blkdev.h:235: error: syntax error before "dev"
/usr/include/linux/blkdev.h:238: error: syntax error before "dev"
/usr/include/linux/blkdev.h: In function `get_hardsect_size':
/usr/include/linux/blkdev.h:241: error: `dev' undeclared (first use in this function)
In file included from /usr/include/linux/blk.h:5,
                 from loop.c:71:
/usr/include/linux/locks.h:8:27: linux/pagemap.h: 没有那个文件或目录
In file included from /usr/include/linux/blk.h:5,
                 from loop.c:71:
/usr/include/linux/locks.h: In function `wait_on_buffer':
/usr/include/linux/locks.h:19: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_buffer':
/usr/include/linux/locks.h:25: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:25: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_super':
/usr/include/linux/locks.h:39: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `unlock_super':
/usr/include/linux/locks.h:44: error: dereferencing pointer to incomplete type
In file included from loop.c:71:
/usr/include/linux/blk.h: At top level:
/usr/include/linux/blk.h:14: error: syntax error before "io_request_lock"
/usr/include/linux/blk.h:58: error: syntax error before "dev"
/usr/include/linux/blk.h: In function `blkdev_dequeue_request':
/usr/include/linux/blk.h:92: error: dereferencing pointer to incomplete type
In file included from loop.c:74:
/usr/include/linux/devfs_fs_kernel.h: At top level:
/usr/include/linux/devfs_fs_kernel.h:279: error: syntax error before "devfs_alloc_devnum"
/usr/include/linux/devfs_fs_kernel.h: In function `devfs_alloc_devnum':
/usr/include/linux/devfs_fs_kernel.h:281: error: `NODEV' undeclared (first use in this function)
/usr/include/linux/devfs_fs_kernel.h: At top level:
/usr/include/linux/devfs_fs_kernel.h:284: error: syntax error before "kdev_t"
loop.c:79:25: asm/uaccess.h: 没有那个文件或目录
In file included from loop.c:81:
/usr/include/linux/loop.h:31:2: #error "Wrong dev_t in loop.h"
loop.c: In function `transfer_xor':
loop.c:123: error: dereferencing pointer to incomplete type
loop.c:124: error: dereferencing pointer to incomplete type
loop.c: In function `none_status':
loop.c:132: error: dereferencing pointer to incomplete type
loop.c:132: error: `LO_FLAGS_BH_REMAP' undeclared (first use in this function)
loop.c: At top level:
loop.c:143: error: variable `none_funcs' has initializer but incomplete type
loop.c:144: error: unknown field `number' specified in initializer
loop.c:144: warning: excess elements in struct initializer
loop.c:144: warning: (near initialization for `none_funcs')
loop.c:145: error: unknown field `transfer' specified in initializer
loop.c:145: warning: excess elements in struct initializer
loop.c:145: warning: (near initialization for `none_funcs')
loop.c:146: error: unknown field `init' specified in initializer
loop.c:146: warning: excess elements in struct initializer
loop.c:146: warning: (near initialization for `none_funcs')
loop.c:149: error: variable `xor_funcs' has initializer but incomplete type
loop.c:150: error: unknown field `number' specified in initializer
loop.c:150: warning: excess elements in struct initializer
loop.c:150: warning: (near initialization for `xor_funcs')
loop.c:151: error: unknown field `transfer' specified in initializer
loop.c:151: warning: excess elements in struct initializer
loop.c:151: warning: (near initialization for `xor_funcs')
loop.c:152: error: unknown field `init' specified in initializer
loop.c:153: warning: excess elements in struct initializer
loop.c:153: warning: (near initialization for `xor_funcs')
loop.c:163: error: syntax error before "kdev_t"
loop.c:163: warning: `struct dentry' declared inside parameter list
loop.c: In function `compute_loop_size':
loop.c:165: error: `lo_dentry' undeclared (first use in this function)
loop.c:166: error: `lo' undeclared (first use in this function)
loop.c:167: error: `lodev' undeclared (first use in this function)
loop.c: In function `figure_loop_size':
loop.c:175: error: dereferencing pointer to incomplete type
loop.c:176: error: dereferencing pointer to incomplete type
loop.c:177: error: dereferencing pointer to incomplete type
loop.c: In function `lo_send':
loop.c:183: error: dereferencing pointer to incomplete type
loop.c:184: error: dereferencing pointer to incomplete type
loop.c:185: error: dereferencing pointer to incomplete type
loop.c:192: error: dereferencing pointer to incomplete type
loop.c:193: error: `PAGE_CACHE_SHIFT' undeclared (first use in this function)
loop.c:194: error: `PAGE_CACHE_SIZE' undeclared (first use in this function)
loop.c:195: error: dereferencing pointer to incomplete type
loop.c:196: error: dereferencing pointer to incomplete type
loop.c:205: warning: assignment makes pointer from integer without a cast
loop.c:208: warning: assignment makes pointer from integer without a cast
loop.c:209: error: dereferencing pointer to incomplete type
loop.c:218: error: `KERN_ERR' undeclared (first use in this function)
loop.c:218: error: syntax error before string constant
loop.c:221: error: dereferencing pointer to incomplete type
loop.c:234: error: dereferencing pointer to incomplete type
loop.c:242: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:252: error: syntax error before '*' token
loop.c: In function `lo_read_actor':
loop.c:255: error: `desc' undeclared (first use in this function)
loop.c:258: error: `page' undeclared (first use in this function)
loop.c:258: error: `PAGE_CACHE_SIZE' undeclared (first use in this function)
loop.c:258: error: `offset' undeclared (first use in this function)
loop.c:260: error: `size' undeclared (first use in this function)
loop.c:263: warning: assignment makes pointer from integer without a cast
loop.c:266: error: `KERN_ERR' undeclared (first use in this function)
loop.c:266: error: syntax error before string constant
loop.c: In function `lo_drop':
loop.c:279: error: dereferencing pointer to incomplete type
loop.c:280: error: dereferencing pointer to incomplete type
loop.c:280: error: dereferencing pointer to incomplete type
loop.c:281: error: dereferencing pointer to incomplete type
loop.c:282: error: dereferencing pointer to incomplete type
loop.c:283: error: dereferencing pointer to incomplete type
loop.c: In function `lo_receive':
loop.c:291: error: `read_descriptor_t' undeclared (first use in this function)
loop.c:291: error: syntax error before "desc"
loop.c:296: error: dereferencing pointer to incomplete type
loop.c:298: error: `desc' undeclared (first use in this function)
loop.c:299: error: dereferencing pointer to incomplete type
loop.c:302: error: dereferencing pointer to incomplete type
loop.c:303: error: dereferencing pointer to incomplete type
loop.c:304: error: dereferencing pointer to incomplete type
loop.c:305: error: dereferencing pointer to incomplete type
loop.c:306: error: dereferencing pointer to incomplete type
loop.c: In function `loop_get_bs':
loop.c:316: error: dereferencing pointer to incomplete type
loop.c:317: error: dereferencing pointer to incomplete type
loop.c:317: error: dereferencing pointer to incomplete type
loop.c: In function `loop_get_iv':
loop.c:330: error: dereferencing pointer to incomplete type
loop.c:331: error: dereferencing pointer to incomplete type
loop.c: In function `do_bh_filebacked':
loop.c:343: error: dereferencing pointer to incomplete type
loop.c:343: error: dereferencing pointer to incomplete type
loop.c: In function `loop_put_buffer':
loop.c:359: error: dereferencing pointer to incomplete type
loop.c:360: error: dereferencing pointer to incomplete type
loop.c:361: error: `bh_cachep' undeclared (first use in this function)
loop.c: In function `loop_add_bh':
loop.c:372: error: dereferencing pointer to incomplete type
loop.c:373: error: dereferencing pointer to incomplete type
loop.c:374: error: dereferencing pointer to incomplete type
loop.c:375: error: dereferencing pointer to incomplete type
loop.c:377: error: dereferencing pointer to incomplete type
loop.c:377: error: dereferencing pointer to incomplete type
loop.c:378: error: dereferencing pointer to incomplete type
loop.c:380: error: dereferencing pointer to incomplete type
loop.c: In function `loop_get_bh':
loop.c:390: error: dereferencing pointer to incomplete type
loop.c:391: error: dereferencing pointer to incomplete type
loop.c:392: error: dereferencing pointer to incomplete type
loop.c:393: error: dereferencing pointer to incomplete type
loop.c:394: error: dereferencing pointer to incomplete type
loop.c:394: error: dereferencing pointer to incomplete type
loop.c:395: error: dereferencing pointer to incomplete type
loop.c:397: error: dereferencing pointer to incomplete type
loop.c: In function `loop_end_io_transfer':
loop.c:411: error: dereferencing pointer to incomplete type
loop.c:413: error: `BH_Dirty' undeclared (first use in this function)
loop.c:413: error: dereferencing pointer to incomplete type
loop.c:413: error: dereferencing pointer to incomplete type
loop.c:414: error: dereferencing pointer to incomplete type
loop.c:416: error: dereferencing pointer to incomplete type
loop.c:417: error: dereferencing pointer to incomplete type
loop.c:418: error: dereferencing pointer to incomplete type
loop.c: In function `loop_get_buffer':
loop.c:434: error: dereferencing pointer to incomplete type
loop.c:434: error: `LO_FLAGS_BH_REMAP' undeclared (first use in this function)
loop.c:440: error: `bh_cachep' undeclared (first use in this function)
loop.c:440: error: `SLAB_NOIO' undeclared (first use in this function)
loop.c:440: warning: assignment makes pointer from integer without a cast
loop.c:445: error: `current' undeclared (first use in this function)
loop.c:446: error: `_SC_CLK_TCK' undeclared (first use in this function)
loop.c:448: error: dereferencing pointer to incomplete type
loop.c:450: error: dereferencing pointer to incomplete type
loop.c:450: error: dereferencing pointer to incomplete type
loop.c:451: error: dereferencing pointer to incomplete type
loop.c:453: error: dereferencing pointer to incomplete type
loop.c:455: error: dereferencing pointer to incomplete type
loop.c:455: error: dereferencing pointer to incomplete type
loop.c:456: error: dereferencing pointer to incomplete type
loop.c:456: error: `BH_Req' undeclared (first use in this function)
loop.c:456: error: `BH_Mapped' undeclared (first use in this function)
loop.c:456: error: `BH_Lock' undeclared (first use in this function)
loop.c:457: error: dereferencing pointer to incomplete type
loop.c:465: error: dereferencing pointer to incomplete type
loop.c:465: error: `GFP_NOIO' undeclared (first use in this function)
loop.c:466: error: dereferencing pointer to incomplete type
loop.c:474: error: dereferencing pointer to incomplete type
loop.c:474: error: dereferencing pointer to incomplete type
loop.c:475: error: dereferencing pointer to incomplete type
loop.c:476: error: dereferencing pointer to incomplete type
loop.c:477: error: dereferencing pointer to incomplete type
loop.c:480: error: dereferencing pointer to incomplete type
loop.c:480: error: dereferencing pointer to incomplete type
loop.c:480: error: dereferencing pointer to incomplete type
loop.c:481: error: dereferencing pointer to incomplete type
loop.c:482: error: dereferencing pointer to incomplete type
loop.c:482: error: dereferencing pointer to incomplete type
loop.c:483: error: dereferencing pointer to incomplete type
loop.c: In function `loop_make_request':
loop.c:497: error: dereferencing pointer to incomplete type
loop.c:500: error: dereferencing pointer to incomplete type
loop.c:501: error: dereferencing pointer to incomplete type
loop.c:502: error: dereferencing pointer to incomplete type
loop.c:502: error: `Lo_bound' undeclared (first use in this function)
loop.c:504: error: dereferencing pointer to incomplete type
loop.c:505: error: dereferencing pointer to incomplete type
loop.c:508: error: dereferencing pointer to incomplete type
loop.c:513: error: `KERN_ERR' undeclared (first use in this function)
loop.c:513: error: syntax error before string constant
loop.c:522: error: dereferencing pointer to incomplete type
loop.c:528: error: `BH_Dirty' undeclared (first use in this function)
loop.c:528: error: dereferencing pointer to incomplete type
loop.c:537: error: dereferencing pointer to incomplete type
loop.c:539: error: dereferencing pointer to incomplete type
loop.c:540: error: dereferencing pointer to incomplete type
loop.c:540: error: dereferencing pointer to incomplete type
loop.c:541: error: dereferencing pointer to incomplete type
loop.c:549: error: dereferencing pointer to incomplete type
loop.c:550: error: dereferencing pointer to incomplete type
loop.c:556: error: dereferencing pointer to incomplete type
loop.c: In function `loop_handle_bh':
loop.c:567: error: dereferencing pointer to incomplete type
loop.c:568: error: `BH_Dirty' undeclared (first use in this function)
loop.c:568: error: dereferencing pointer to incomplete type
loop.c:571: error: dereferencing pointer to incomplete type
loop.c:573: error: dereferencing pointer to incomplete type
loop.c:574: error: dereferencing pointer to incomplete type
loop.c:576: error: dereferencing pointer to incomplete type
loop.c:576: error: dereferencing pointer to incomplete type
loop.c:577: error: dereferencing pointer to incomplete type
loop.c:579: error: dereferencing pointer to incomplete type
loop.c:580: error: dereferencing pointer to incomplete type
loop.c: In function `loop_thread':
loop.c:597: error: `current' undeclared (first use in this function)
loop.c:600: error: dereferencing pointer to incomplete type
loop.c:607: error: dereferencing pointer to incomplete type
loop.c:608: error: dereferencing pointer to incomplete type
loop.c:608: error: `Lo_bound' undeclared (first use in this function)
loop.c:609: error: dereferencing pointer to incomplete type
loop.c:610: error: dereferencing pointer to incomplete type
loop.c:612: error: `PF_NOIO' undeclared (first use in this function)
loop.c:617: error: dereferencing pointer to incomplete type
loop.c:620: error: dereferencing pointer to incomplete type
loop.c:625: error: dereferencing pointer to incomplete type
loop.c:639: error: dereferencing pointer to incomplete type
loop.c:643: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:647: error: syntax error before "kdev_t"
loop.c: In function `loop_change_fd':
loop.c:651: error: `kdev_t' undeclared (first use in this function)
loop.c:651: error: syntax error before "lo_device"
loop.c:656: error: `set' undeclared (first use in this function)
loop.c:660: error: `lo' undeclared (first use in this function)
loop.c:660: error: `Lo_unbound' undeclared (first use in this function)
loop.c:664: error: `Lo_bound' undeclared (first use in this function)
loop.c:668: error: `arg' undeclared (first use in this function)
loop.c:668: warning: assignment makes pointer from integer without a cast
loop.c:673: error: dereferencing pointer to incomplete type
loop.c:675: error: dereferencing pointer to incomplete type
loop.c:678: error: dereferencing pointer to incomplete type
loop.c:679: error: `lo_device' undeclared (first use in this function)
loop.c:679: error: dereferencing pointer to incomplete type
loop.c:680: error: `dev' undeclared (first use in this function)
loop.c:684: error: dereferencing pointer to incomplete type
loop.c:685: error: dereferencing pointer to incomplete type
loop.c:690: error: dereferencing pointer to incomplete type
loop.c:693: error: dereferencing pointer to incomplete type
loop.c:693: error: dereferencing pointer to incomplete type
loop.c:696: error: dereferencing pointer to incomplete type
loop.c:705: error: dereferencing pointer to incomplete type
loop.c:706: error: `lo_file' undeclared (first use in this function)
loop.c:721: error: dereferencing pointer to incomplete type
loop.c:722: error: dereferencing pointer to incomplete type
loop.c:722: error: `__GFP_IO' undeclared (first use in this function)
loop.c:722: error: `__GFP_FS' undeclared (first use in this function)
loop.c:737: error: dereferencing pointer to incomplete type
loop.c:738: error: storage size of `sem' isn't known
loop.c:739: error: syntax error before "old_device"
loop.c:760: error: `old_device' undeclared (first use in this function)
loop.c: In function `loop_release_xfer':
loop.c:791: error: dereferencing pointer to incomplete type
loop.c:792: error: dereferencing pointer to incomplete type
loop.c:793: error: dereferencing pointer to incomplete type
loop.c:794: error: dereferencing pointer to incomplete type
loop.c:795: error: dereferencing pointer to incomplete type
loop.c:796: error: dereferencing pointer to incomplete type
loop.c:797: error: dereferencing pointer to incomplete type
loop.c: In function `loop_init_xfer':
loop.c:807: error: dereferencing pointer to incomplete type
loop.c:808: error: dereferencing pointer to incomplete type
loop.c:810: error: dereferencing pointer to incomplete type
loop.c:811: error: dereferencing pointer to incomplete type
loop.c:812: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:818: warning: `struct block_device' declared inside parameter list
loop.c: In function `loop_clr_fd':
loop.c:820: error: dereferencing pointer to incomplete type
loop.c:821: error: dereferencing pointer to incomplete type
loop.c:823: error: dereferencing pointer to incomplete type
loop.c:823: error: `Lo_bound' undeclared (first use in this function)
loop.c:825: error: dereferencing pointer to incomplete type
loop.c:830: error: dereferencing pointer to incomplete type
loop.c:831: error: dereferencing pointer to incomplete type
loop.c:831: error: `Lo_rundown' undeclared (first use in this function)
loop.c:832: error: dereferencing pointer to incomplete type
loop.c:833: error: dereferencing pointer to incomplete type
loop.c:834: error: dereferencing pointer to incomplete type
loop.c:836: error: dereferencing pointer to incomplete type
loop.c:838: error: dereferencing pointer to incomplete type
loop.c:841: error: dereferencing pointer to incomplete type
loop.c:842: error: dereferencing pointer to incomplete type
loop.c:843: error: dereferencing pointer to incomplete type
loop.c:844: error: dereferencing pointer to incomplete type
loop.c:845: error: dereferencing pointer to incomplete type
loop.c:846: error: dereferencing pointer to incomplete type
loop.c:847: error: dereferencing pointer to incomplete type
loop.c:848: error: dereferencing pointer to incomplete type
loop.c:849: error: dereferencing pointer to incomplete type
loop.c:850: error: dereferencing pointer to incomplete type
loop.c:852: error: dereferencing pointer to incomplete type
loop.c:853: error: dereferencing pointer to incomplete type
loop.c:853: error: `Lo_unbound' undeclared (first use in this function)
loop.c: In function `loop_set_status':
loop.c:865: error: dereferencing pointer to incomplete type
loop.c:865: error: dereferencing pointer to incomplete type
loop.c:865: error: `current' undeclared (first use in this function)
loop.c:868: error: dereferencing pointer to incomplete type
loop.c:868: error: `Lo_bound' undeclared (first use in this function)
loop.c:885: error: dereferencing pointer to incomplete type
loop.c:886: error: dereferencing pointer to incomplete type
loop.c:888: error: dereferencing pointer to incomplete type
loop.c:888: error: dereferencing pointer to incomplete type
loop.c:889: error: dereferencing pointer to incomplete type
loop.c:889: error: dereferencing pointer to incomplete type
loop.c:890: error: dereferencing pointer to incomplete type
loop.c:891: error: dereferencing pointer to incomplete type
loop.c:892: error: dereferencing pointer to incomplete type
loop.c:894: error: dereferencing pointer to incomplete type
loop.c:896: error: dereferencing pointer to incomplete type
loop.c: In function `loop_get_status':
loop.c:905: error: dereferencing pointer to incomplete type
loop.c:907: error: dereferencing pointer to incomplete type
loop.c:907: error: `Lo_bound' undeclared (first use in this function)
loop.c:912: error: dereferencing pointer to incomplete type
loop.c:913: error: dereferencing pointer to incomplete type
loop.c:914: error: dereferencing pointer to incomplete type
loop.c:915: error: dereferencing pointer to incomplete type
loop.c:916: error: dereferencing pointer to incomplete type
loop.c:917: error: dereferencing pointer to incomplete type
loop.c:918: error: dereferencing pointer to incomplete type
loop.c:919: error: dereferencing pointer to incomplete type
loop.c:920: error: dereferencing pointer to incomplete type
loop.c:921: error: dereferencing pointer to incomplete type
loop.c:922: error: dereferencing pointer to incomplete type
loop.c:923: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:929: warning: `struct inode' declared inside parameter list
loop.c: In function `lo_ioctl':
loop.c:936: error: dereferencing pointer to incomplete type
loop.c:937: error: `KERN_WARNING' undeclared (first use in this function)
loop.c:937: error: syntax error before string constant
loop.c:941: error: dereferencing pointer to incomplete type
loop.c:944: error: invalid use of undefined type `struct loop_device'
loop.c:944: error: dereferencing pointer to incomplete type
loop.c:945: error: dereferencing pointer to incomplete type
loop.c:948: error: dereferencing pointer to incomplete type
loop.c:951: error: dereferencing pointer to incomplete type
loop.c:954: error: dereferencing pointer to incomplete type
loop.c:963: error: dereferencing pointer to incomplete type
loop.c:963: error: `Lo_bound' undeclared (first use in this function)
loop.c:967: error: dereferencing pointer to incomplete type
loop.c:969: error: `BLKGETSIZE64' undeclared (first use in this function)
loop.c:970: error: dereferencing pointer to incomplete type
loop.c:974: error: `u64' undeclared (first use in this function)
loop.c:974: error: syntax error before "loop_sizes"
loop.c:979: error: dereferencing pointer to incomplete type
loop.c:982: error: dereferencing pointer to incomplete type
loop.c:982: error: dereferencing pointer to incomplete type
loop.c:984: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:988: warning: `struct inode' declared inside parameter list
loop.c: In function `lo_open':
loop.c:995: error: dereferencing pointer to incomplete type
loop.c:996: error: `KERN_WARNING' undeclared (first use in this function)
loop.c:996: error: syntax error before string constant
loop.c:999: error: dereferencing pointer to incomplete type
loop.c:1003: error: invalid use of undefined type `struct loop_device'
loop.c:1003: error: dereferencing pointer to incomplete type
loop.c:1005: error: dereferencing pointer to incomplete type
loop.c:1007: error: dereferencing pointer to incomplete type
loop.c:1008: error: dereferencing pointer to incomplete type
loop.c:1009: error: dereferencing pointer to incomplete type
loop.c:1010: error: dereferencing pointer to incomplete type
loop.c:1011: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:1015: warning: `struct inode' declared inside parameter list
loop.c: In function `lo_release':
loop.c:1022: error: dereferencing pointer to incomplete type
loop.c:1023: error: `KERN_WARNING' undeclared (first use in this function)
loop.c:1023: error: syntax error before string constant
loop.c:1027: error: dereferencing pointer to incomplete type
loop.c:1031: error: invalid use of undefined type `struct loop_device'
loop.c:1031: error: dereferencing pointer to incomplete type
loop.c:1032: error: dereferencing pointer to incomplete type
loop.c:1033: error: dereferencing pointer to incomplete type
loop.c:1034: error: dereferencing pointer to incomplete type
loop.c:1035: error: dereferencing pointer to incomplete type
loop.c:1036: error: dereferencing pointer to incomplete type
loop.c:1038: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:1043: error: variable `lo_fops' has initializer but incomplete type
loop.c:1044: error: unknown field `owner' specified in initializer
loop.c:1044: warning: excess elements in struct initializer
loop.c:1044: warning: (near initialization for `lo_fops')
loop.c:1045: error: unknown field `open' specified in initializer
loop.c:1045: warning: excess elements in struct initializer
loop.c:1045: warning: (near initialization for `lo_fops')
loop.c:1046: error: unknown field `release' specified in initializer
loop.c:1046: warning: excess elements in struct initializer
loop.c:1046: warning: (near initialization for `lo_fops')
loop.c:1047: error: unknown field `ioctl' specified in initializer
loop.c:1047: warning: excess elements in struct initializer
loop.c:1047: warning: (near initialization for `lo_fops')
loop.c: In function `loop_register_transfer':
loop.c:1059: error: dereferencing pointer to incomplete type
loop.c:1059: error: dereferencing pointer to incomplete type
loop.c:1061: error: dereferencing pointer to incomplete type
loop.c: In function `loop_unregister_transfer':
loop.c:1071: error: invalid use of undefined type `struct loop_device'
loop.c:1071: error: dereferencing pointer to incomplete type
loop.c:1071: error: invalid use of undefined type `struct loop_device'
loop.c:1071: error: dereferencing pointer to incomplete type
loop.c:1071: error: increment of pointer to unknown structure
loop.c:1071: error: arithmetic on pointer to an incomplete type
loop.c:1072: error: dereferencing pointer to incomplete type
loop.c:1074: error: dereferencing pointer to incomplete type
loop.c:1075: error: dereferencing pointer to incomplete type
loop.c:1076: error: dereferencing pointer to incomplete type
loop.c: At top level:
loop.c:1083: error: syntax error before "config_must_be_included_before_module"
loop.c:1083: warning: data definition has no type or storage class
loop.c:1084: error: syntax error before "config_must_be_included_before_module"
loop.c:1084: warning: data definition has no type or storage class
loop.c: In function `loop_init':
loop.c:1092: error: `KERN_WARNING' undeclared (first use in this function)
loop.c:1092: error: syntax error before string constant
loop.c:1096: warning: passing arg 3 of `devfs_register_blkdev' from incompatible pointer type
loop.c:1098: error: syntax error before string constant
loop.c:1103: error: invalid application of `sizeof' to an incomplete type
loop.c:1103: error: `GFP_KERNEL' undeclared (first use in this function)
loop.c:1103: warning: assignment makes pointer from integer without a cast
loop.c:1107: warning: assignment makes pointer from integer without a cast
loop.c:1111: warning: assignment makes pointer from integer without a cast
loop.c:1118: error: invalid use of undefined type `struct loop_device'
loop.c:1118: error: dereferencing pointer to incomplete type
loop.c:1119: error: invalid application of `sizeof' to an incomplete type
loop.c:1120: error: dereferencing pointer to incomplete type
loop.c:1121: error: dereferencing pointer to incomplete type
loop.c:1122: error: dereferencing pointer to incomplete type
loop.c:1123: error: dereferencing pointer to incomplete type
loop.c:1124: error: dereferencing pointer to incomplete type
loop.c:1140: error: `KERN_INFO' undeclared (first use in this function)
loop.c:1140: error: syntax error before string constant
loop.c:1148: error: syntax error before string constant
loop.c:1149: error: `KERN_ERR' undeclared (first use in this function)
loop.c:1149: error: syntax error before string constant
loop.c: In function `loop_exit':
loop.c:1157: error: `KERN_WARNING' undeclared (first use in this function)
loop.c:1157: error: syntax error before string constant
loop.c: At top level:
loop.c:143: error: storage size of `none_funcs' isn't known
loop.c:149: error: storage size of `xor_funcs' isn't known
loop.c:1043: error: storage size of `lo_fops' isn't known

前面还有一大段。。。

不知出了什么事,呵呵

后面redflowflag提供的办法
[quote:90b6bc4da2="redflowflag"]以root身份登录。运行ntsysv 把rawdevice服务给选 上。然后重启一下或是在init.d里打开这个服务。试一下。[/quote]

我也试了一下,不过我的rawdevice服务是自动运行的,我还是把他KILL掉再运行了一下,但
情况依然像开始一样。。。。。。。。


真不知哪里出错了,请各位大佬,指教,提宝贵建议,谢先。。。。。。。。。。
回复

使用道具 举报

发表于 2004-4-19 01:10:35 | 显示全部楼层
估计是内核的问题
http://www.uwsg.iu.edu/hypermail/linux/kernel/0208.3/0489.html
升级你的内核就OK了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 06:48 , Processed in 0.059326 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表