[ENBD] Re: ENBD on Debian 2.6.7/8 kernel
P.T. Breuer
ptb at it.uc3m.es
Sun Oct 10 03:25:35 MDT 2004
In article <41615BFB.2080601 at ociweb.com> you wrote:
> | There is something wrong with your compilation, or development
> | environment, or configuration. You have located the problem as
> | being in userspace.
>
>
> Ok. I will look at how the test environment is setup and attempt to
> duplicate it for the non-localhost case.
I've been able to run a 2.6.7 UML kernel at last - the UML kernel is
extremely unstable on my system, and I have had lots of trouble getting
to this point, so my apologies for lateness (I think the UML problem is
a timing problem with reading pipes under glibc).
About all I can say at this point is that in order to load the enbd
module without an oops (well, I get an oops in that kernel just by
pasting terminal input into a cat | cat >/dev/null with the mouse), I
had to make the following one line patch to enbd_base.c:
(in enbd_set_disk, which deals with initializing the stuff that
/proc/partitions reports)
if (!disk) {
return -EINVAL;
}
disk->major = major;
disk->first_minor = first_minor;
+ disk->minors = npart;
disk->fops = &enbd_blkops;
disk->private_data = lo;
disk->queue = lo->q;
and probably I should start by zeroing the whole gendisk struct.
Peter
More information about the ENBD
mailing list