[ENBD] Compiling v. 2.4.24 w/ kernel 2.2.* -- patch included

Peter T. Breuer ptb@it.uc3m.es
Sat, 7 Apr 2001 00:34:48 +0200 (MET DST)


"A month of sundays ago Leonid Andreev wrote:"
> I'm attaching a patch that you apparently need to apply to compile enbd
> 2.4.24 w/ kernel 2.2.*; things from the kernel 2.4.* like bh_kmap and

Oh, OK, thanks!

> mark_buffer_protected are not available in kernels 2.2.*, but use the
> functionality available in 2.2.* and thus can be defined; also, as I
> reported earlier, some plug_device_fn stuff was left outside
> "#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,30)" statement.

Very probably .. I've been concentrating on tests against 2.4.[0] and
haven't been able to go back and test against 2.2.*. I'm very happy to
get a patch.

I'll look it over.

Mind you .. I thought I spotted the bh_kmap stuff ... it should be in
some #ifdef TRY_SOMETHING_SILLY. But apparently it isn't. Sorry about
that. If you managed to implement it in 2.2.* terms, that's good news,
because it's the experimental writeback buffering a la ramdisk.

> Once the patch has been applied, everything compiles and seems to be
> working, although I haven't tested it extensively yet.

If the patch touched only the bh_kmap and plug stuff, then it will work
unless you define plug=1 and buffer_writes=1 (and possibly also
merge_requests=1 ... but that's enough to break 2.2. on its own).

> best,
> 
> -Leonid
> 
> P.S. I'm using kernel 2.2.17/SMP, RedHat's "2.2.17-14enterprise" built.

OK, I'll merge your patch now ... 2.4.24 is the one in which I am
accumulating current changes. I didn't know people were also picking it
up ... though that's quite alright and very helpful.

Peter