Re: 2.4.32pre with Kernel 2.6.12?

"Peter T. Breuer" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Holgilein:"
> > Please scatter some
> >
> >    printk(KERN_INFO "ENBD %s:%d\n", __FUNCTION__, __LINE__);
> >
> > around in the init routine. This is not hard!
> >
> 
> I know you are curious, but unfortunately I have got some other things to
> do as well... ;-)

You've made me check myself - I have compiled kernel 2.6.12.3 and
compiled enbd against it and  loaded the module with no problem.

  ...
  ENBD #5287[0]: enbd_init Network Block Device originally by [email protected]
  ENBD #5288[0]: enbd_init Network Block Device port to 2.0 by [email protected]
  ENBD #5290[0]: enbd_init Network Block Device move networking to user space by [email protected]
  ENBD #5292[0]: enbd_init Enhanced Network Block Device 2.4.30 $Date: 2002/09/17 16:33:22 $ by [email protected]
  ENBD #5332[0]: enbd_init registered device at major 43
  warning: process čnbd-client' used the obsolete bdflush system call
  ...


  nbd:/usr/oboe/ptb% uname -a
  Linux nbd.it.uc3m.es 2.6.12.3-SMP #2 SMP Fri Jul 29 22:02:12 CEST 2005 i686 unknown
  nbd:/usr/oboe/ptb% 

And I have run "make test" OK.

 /dev/nda has 1048576 bytes in 1024 blocks of 1024 bytes each
 flushing buffers..done
 writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
 test 1 success:  0 incorrect blocks
 flushing buffers..done
 flushing buffers..done
 reading....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
 test 2 success:  0 incorrect blocks
 flushing buffers..done
 flushing buffers..done
 writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
 test 3 success:  0 incorrect blocks
 flushing buffers..done
 flushing buffers..done
 reading....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
 test 4 success:  0 incorrect blocks
 flushing buffers..done
 flushing buffers..done
 seeking and
 writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
 flushing buffers..done
 reading and
 checking....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....
 (1000KB written in 0.013304s, 73.403676 MB/s, 150330.727601 seeks/s)
 (1000KB read in 0.008188s, 119.267526 MB/s)done
 test 5 success:  0 incorrect blocks
 flushing buffers..done
 enbd-server  4928: <#1765> do_srv_ioctl server returns error reply
 (-22) for ioctl type 0x4004ab01
 ioctl 1 (write direct) testing write illegal ..success (fail Invalid
 argument)
 ioctl 1 (write direct) testing write 0x397b1f99 ..success
 ioctl 2 (read indirect) testing read 0x397b1f99 ..success
 enbd-server  4927: <#1765> do_srv_ioctl server returns error reply
 (-22) for ioctl type 0xc004ab12
 ioctl 3 (write + read indirect) testing illegal ..success (fail
 Invalid argument)
 ioctl 3 (write + read indirect) testing w/r 0x687402d3 ..success
 (wrote 0x687402d3 read 0x978bfd2c expected 0x978bfd2c)
 ioctl 4 (large read indirect) testing ..success
 ioctl 5 (large write + read indirect) testing ..success

 nbd:/usr/oboe/ptb/lang/c/nbd/nbd-2.4.32% cat /proc/nbdinfo 
 Device a:       Open 
 [a] State:      verify, rw, merge requests, enabled, last error 0,
 lives 0, bp 0
 [a] Queued:     +0R/0W curr (check 0R/0W) +4R/54W max
 [a] Buffersize: 262144  (sectors=512, blocks=256)
 [a] Blocksize:  1024    (log=10)
 [a] Size:       8192KB
 [a] Blocks:     8192
 [a] Sockets:    4       (+)     (+)     (*)     (+)
 [a] Requested:  3.2009K (720)   (809)   (744)   (1003)  224R/2.982KW max 32
 [a] Despatched: 3.1996K (720)   (809)   (744)   (1003)  224R/2.981KW md5 0W (0 eq, 0 ne, 0 dn)
 [a] Errored:    1       (0)     (0)     (1)     (0)     1+0
 [a] Pending:    0       (0)     (0)     (0)     (0)     0R/0W+0R/0W
 [a] B/s now:    0       (0R+0W)
 [a] B/s ave:    57.0K   (3.00KR+53.0KW)
 [a] B/s max:    207K    (37.0KR+194KW)
 [a] Spectrum:   3%0     25%1    1%4     1%8     1%9     1%11    1%14 1%2254%32
 [a] Kthreads:   0       (0 waiting/0 running/1 max)
 [a] Cthreads:   4       (+)     (+)     (+)     (+)
 [a] Cpids:      4       (4947)  (4948)  (4949)  (4950)
 Device b-p:     Closed


So you will have to add the prink's to your init code to see what is wrong.
I repeat that to me it looks like a compiler problem. But we won't know
until you add the printks and rerun.

Oh - and tell me of any obvious extreme weirdnesses in the setup, like
maybe running on xeon, or having 16GB of memory, or using ia64.


Peter
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.