[ENBD] nbd with an SMP kernel?
Peter T. Breuer
ptb@it.uc3m.es
Fri, 13 Oct 2000 03:43:03 +0200 (MET DST)
"A month of sundays ago leonid@svinka.ne.mediaone.net wrote:"
>
> > "A month of sundays ago leonid@hmdc-admin.fas.harvard.edu wrote:"
> > Check the list archives.
>
> I did, but nothing caught my eye immediately; do you by any chance
> remember the thread(s) worth checking out?
Errr ... yes. Appears to be "Problem with enbd 2.2.27" (took a while to
figure out that richard was using smp). The thread appears to conclude:
> ----- forwarded message from Richard Sharpe -----
>
> Hi Again,
>
> I think that -D__SMP__ was what was needed ...
> 2.2.16 instead of 2.2.16smp; so I had to hack the Makefiles in the ugly
> way described above... it could indeed be that I should define the SMP
> flag on the command line. I'll try that in a sec.
Or propagate it down by force. You just have to copy and paste the
module compile line with the changes you want added in. For me, the
module appears to be compiled by:
cd /tmp; gcc -O2 -Wall -D_LARGEFILE64_SOURCE -D__KERNEL__ -DMODULE
-DDEBUG=0 -I/var/home/oboe/ptb/lang/c/nbd/nbd-2.4.15/linux/include
-DUNIX98_NR_MAJORS=UNIX98_PTY_MAJOR_COUNT -c -o nbd.o
/var/home/oboe/ptb/lang/c/nbd/nbd-2.4.15/linux/drivers/block/nbd.c
so add -D__SMP__ there.
> as I mentioned, I tried nbd both 2.4.14 and 2.2.28, the kernel is
> 2.2.16smp, the compiler is egcs-2.91.66 (this is a patched RedHat 6.2
I don't think 2.91 is approved for kernel compilation? 2.96 certainly
isn't. I use 2.7.2.3 or sometimes 2.8.1 (since I know what those two
mess up).
Peter