[ENBD] kernel message "non existant block device"
Peter T. Breuer
ptb@it.uc3m.es
Thu, 26 Oct 2000 03:03:17 +0200 (MET DST)
"A month of sundays ago pbmonday@imation.com wrote:"
> At any rate, I can now mount a new filesystem with the NBD. My suspicion
> is that the default SuSE install comes with an old NBD built into the
> kernel, or something like that. I can't really explain it. All of the
It just occurred to me that if that was the case, then it should have
been obvious in the dmesg output (did you send it?). The Enbd module
will complain if the major it wants has already been grabbed.
if (register_blkdev (MAJOR_NR, "nbd", &nbd_fops)) {
#else
if (register_blkdev (MAJOR_NR, "nbd", &nbd_blkops)) {
#endif
NBD_ERROR ("Unable to get major number %d for NBD\n", MAJOR_NR);
return -EIO;
}
You can change the major number in the Makefile, and recompile the
module (and change the /dev/nd?? files to match).
Peter