All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] rh kernel patches
@ 2001-09-04 17:56 Pierre Lamb
  2001-09-04 18:11 ` svetljo
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Pierre Lamb @ 2001-09-04 17:56 UTC (permalink / raw)
  To: linux-lvm

Is there a correct way to patch RH kernels. I have
tried using the "final path" to update 2.4.7 rh kernel
but just get errors. Is there a work around for this
problem.

Pierre

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: [linux-lvm] rh kernel patches
@ 2001-09-05  5:34 Jean-Eric Cuendet
  2001-09-05 19:34 ` svetljo
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Eric Cuendet @ 2001-09-05  5:34 UTC (permalink / raw)
  To: linux-lvm

Hi,
I have patched RH 2.4.7 kernel successfully. I understand what you want
to do and must say that it's a *good* thing for 2 reasons:
- having ext3 in the kernel
- having quotas3 in the kernel

To do so, get the redhat sources. Put them in <srcdir> (Ex:
/tmp/linux-2.4.7-rh)
Get the LVM 1.0.1rc2 (not another release) and uncompress them (Ex:
/tmp/LVM/1.0.1rc2)
Then, go in .../LVM/1.0.1-rc2 and run ./configure
--with-kernel_dir=<srcdir>
Then make, make install the tools (Note that kernel is not touch at this
point). They yre mandatory to make your LVM system working.
Then go in <srcdir>, and patch your kernel with a patch made by
configure just for your kernel. It's in
.../LVM/1.0.1rc2/PATCHES/lvm_1.0.1rc2-2.4.7.<snip>.patch. It was created
by configure for the kernel you gave in <srcdir>
Then patch it with:
- cd <srcdir>
- patch -p1 < .../LVM/1.0.1rc2/PATCHES/lvm.<snip>.patch

And you are done. (quite...)
Then make bzImage will compile it, except for a little thing: min/max
functions. RH kernel is made from Alan Cox one. And Linus kernel changed
min/max functions. LVM uses Linus min/max functions while -ac (RedHat)
kernel uses old min/max functions.

During the compilation, you'll get errors with files in drivers/md/.
They are lvm.c, lvm-snap.c and perhaps a third I don't remember. To
correct those, just copy the 2 macros in each fault file:
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
At the beginning of the file (before anything else).

And compile with work.

But if you don't need ext3 nor quotas3, then go with a plain Linus
kernel (available at www.kernel.org), you'll have less problems... :-)

Ask for more help
-jec

> -----Original Message-----
> From: Pierre Lamb [mailto:plamb_98@yahoo.com] 
> Sent: mardi, 4. septembre 2001 19:56
> To: linux-lvm@sistina.com
> Subject: [linux-lvm] rh kernel patches
> 
> 
> Is there a correct way to patch RH kernels. I have
> tried using the "final path" to update 2.4.7 rh kernel
> but just get errors. Is there a work around for this
> problem.
> 
> Pierre
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with 
> Yahoo! Messenger http://im.yahoo.com
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com 
> http://lists.sistina.com/mailman/listinfo/linu> x-lvm
> read the 
> LVM HOW-TO at 
> http://www.sistina.com/lvm/Pages/howto.html
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-09-05 19:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-04 17:56 [linux-lvm] rh kernel patches Pierre Lamb
2001-09-04 18:11 ` svetljo
2001-09-04 19:25   ` Pierre Lamb
2001-09-04 19:43     ` Lewis Bergman
2001-09-04 19:53     ` Joe Thornber
2001-09-04 20:44       ` Pierre Lamb
2001-09-04 23:10         ` svetljo
2001-09-04 19:22 ` Joe Thornber
2001-09-04 20:14 ` Erick Calder
  -- strict thread matches above, loose matches on Subject: below --
2001-09-05  5:34 Jean-Eric Cuendet
2001-09-05 19:34 ` svetljo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.