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-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:22 ` Joe Thornber
  2001-09-04 20:14 ` Erick Calder
  2 siblings, 1 reply; 11+ messages in thread
From: svetljo @ 2001-09-04 18:11 UTC (permalink / raw)
  To: linux-lvm

Red Hat uses Alan Cox kernel, i think you can not aply the patches from 
1.0.1rc1 and rc2 to -ac kernel
at least it didn't worked for me with 2.4.9-ac5  but i think you should 
be able to aply the lvm-1.0 release
it worked for me
Pierre Lamb wrote:

>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/linux-lvm
>read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
>

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

* Re: [linux-lvm] rh kernel patches
  2001-09-04 17:56 [linux-lvm] rh kernel patches Pierre Lamb
  2001-09-04 18:11 ` svetljo
@ 2001-09-04 19:22 ` Joe Thornber
  2001-09-04 20:14 ` Erick Calder
  2 siblings, 0 replies; 11+ messages in thread
From: Joe Thornber @ 2001-09-04 19:22 UTC (permalink / raw)
  To: linux-lvm

On Tue, Sep 04, 2001 at 10:56:05AM -0700, Pierre Lamb wrote:
> Is there a correct way to patch RH kernels. I have
> tried using the "final path" to update 2.4.7 rh kernel

What's the "final path" ?

> but just get errors. Is there a work around for this
> problem.

You built the patch correctly using LVM/PATCHES/Makefile ?

If so what were the errors ?

- Joe

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

* Re: [linux-lvm] rh kernel patches
  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
  0 siblings, 2 replies; 11+ messages in thread
From: Pierre Lamb @ 2001-09-04 19:25 UTC (permalink / raw)
  To: linux-lvm

I quess I don't understand the whole picture. From the
/PATCHES/readme file I was lead to believe all I need
to to id use the patch file labeled
"lvm-0.8final-2.4.0.patch" and apply it to the rh
kernel 2.4.7.  Am I mistaken???? PLease provide
guidance..

Pierre
--- svetljo <galia@st-peter.stw.uni-erlangen.de>
wrote:
> Red Hat uses Alan Cox kernel, i think you can not
> aply the patches from 
> 1.0.1rc1 and rc2 to -ac kernel
> at least it didn't worked for me with 2.4.9-ac5  but
> i think you should 
> be able to aply the lvm-1.0 release
> it worked for me
> Pierre Lamb wrote:
> 
> >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/linux-lvm
> >read the LVM HOW-TO at
> http://www.sistina.com/lvm/Pages/howto.html
> >
> 
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html


__________________________________________________
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-04 19:25   ` Pierre Lamb
@ 2001-09-04 19:43     ` Lewis Bergman
  2001-09-04 19:53     ` Joe Thornber
  1 sibling, 0 replies; 11+ messages in thread
From: Lewis Bergman @ 2001-09-04 19:43 UTC (permalink / raw)
  To: linux-lvm

On Tuesday 04 September 2001 02:25 pm, you wrote:
> I quess I don't understand the whole picture. From the
> /PATCHES/readme file I was lead to believe all I need
> to to id use the patch file labeled
> "lvm-0.8final-2.4.0.patch" and apply it to the rh
> kernel 2.4.7.  Am I mistaken???? PLease provide
> guidance..
RedHat kernel? I didn't think there was such a thing. Especially not 2.4.7.
Read the README again and you'll see you must  run make to generate a kernel 
specific patch.

-- 
Lewis Bergman
Texas Communications
4309 Maple St.
Abilene, TX 79602-8044
915-695-6962

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

* Re: [linux-lvm] rh kernel patches
  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
  1 sibling, 1 reply; 11+ messages in thread
From: Joe Thornber @ 2001-09-04 19:53 UTC (permalink / raw)
  To: linux-lvm

On Tue, Sep 04, 2001 at 12:25:13PM -0700, Pierre Lamb wrote:
> I quess I don't understand the whole picture. From the
> /PATCHES/readme file I was lead to believe all I need
> to to id use the patch file labeled
> "lvm-0.8final-2.4.0.patch" and apply it to the rh
> kernel 2.4.7.  Am I mistaken???? PLease provide
> guidance..

Which release of the tools are you looking at ?  1.0.1-rc2 I hope ?

- Joe

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

* RE: [linux-lvm] rh kernel patches
  2001-09-04 17:56 [linux-lvm] rh kernel patches Pierre Lamb
  2001-09-04 18:11 ` svetljo
  2001-09-04 19:22 ` Joe Thornber
@ 2001-09-04 20:14 ` Erick Calder
  2 siblings, 0 replies; 11+ messages in thread
From: Erick Calder @ 2001-09-04 20:14 UTC (permalink / raw)
  To: linux-lvm

Pierre,

I'd like to pass on some very useful advice I received from this list.

the LVM patches are made against Linus' kernel (which you can find at
kernel.org).  RedHat makes modifications to the kernel (to add device
drivers and god knows what else) and so the LVM patches may or may not work
against the RH-modified kernel, depending on whether RH modified some piece
that LVM patches.

The simplest thing to do is to just get the latest Linus kernel.  I
struggled with the RH 2.4.7 kernel until I decided it was not worth the time
and went and got the Linus kernel.  Make sure to get the LVM rc1 (at least)
since the 1.0 release had some problems with changes that Linus made.

I'm now happily running RH 7.0 with the 2.4.9 kernel.

- e

-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On
Behalf Of Pierre Lamb
Sent: Tuesday, September 04, 2001 10:56 AM
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.

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

* Re: [linux-lvm] rh kernel patches
  2001-09-04 19:53     ` Joe Thornber
@ 2001-09-04 20:44       ` Pierre Lamb
  2001-09-04 23:10         ` svetljo
  0 siblings, 1 reply; 11+ messages in thread
From: Pierre Lamb @ 2001-09-04 20:44 UTC (permalink / raw)
  To: linux-lvm

Yes I am I thought the "lvm-0.8..." could be applied
with the patch command to the kernel, I gues I am
incorrect.

Pierre
--- Joe Thornber <thornber@btconnect.com> wrote:
> On Tue, Sep 04, 2001 at 12:25:13PM -0700, Pierre
> Lamb wrote:
> > I quess I don't understand the whole picture. From
> the
> > /PATCHES/readme file I was lead to believe all I
> need
> > to to id use the patch file labeled
> > "lvm-0.8final-2.4.0.patch" and apply it to the rh
> > kernel 2.4.7.  Am I mistaken???? PLease provide
> > guidance..
> 
> Which release of the tools are you looking at ? 
> 1.0.1-rc2 I hope ?
> 
> - Joe
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at
http://www.sistina.com/lvm/Pages/howto.html


__________________________________________________
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-04 20:44       ` Pierre Lamb
@ 2001-09-04 23:10         ` svetljo
  0 siblings, 0 replies; 11+ messages in thread
From: svetljo @ 2001-09-04 23:10 UTC (permalink / raw)
  To: linux-lvm

you alredy have lvm-0.9beta2 wich comes with kernel-2.4
you shouldn't downgrade to 0.8 try the LVM-1.0-release
untar it, run configure in the toplevel LVM directory , than go to 
PATCHES and do make
you should have lvm-1.0.patch for your kernel in the directory
and patch the kernel
cat linux-2.4.7rh-lvm-1.0.patch | patch -p1 -d /usr/src/linux
                 |                                                       
           |
     here is your kernel patch                           and that's the 
path to your kernel


rebuild the kernel and it should be allright
if duiring the rebuild you have some problems with building the lvm part 
of the kernel

run ones more configure , in PATCHES make ,
cat linux-2.4.7rh-lvm-1.0.patch | patch -p1 -d /usr/src/linux

and that's it
you shouldn't have more troubles

make the lvm library and binaries and install them




Pierre Lamb wrote:

>Yes I am I thought the "lvm-0.8..." could be applied
>with the patch command to the kernel, I gues I am
>incorrect.
>
>Pierre
>--- Joe Thornber <thornber@btconnect.com> wrote:
>
>>On Tue, Sep 04, 2001 at 12:25:13PM -0700, Pierre
>>Lamb wrote:
>>
>>>I quess I don't understand the whole picture. From
>>>
>>the
>>
>>>/PATCHES/readme file I was lead to believe all I
>>>
>>need
>>
>>>to to id use the patch file labeled
>>>"lvm-0.8final-2.4.0.patch" and apply it to the rh
>>>kernel 2.4.7.  Am I mistaken???? PLease provide
>>>guidance..
>>>
>>Which release of the tools are you looking at ? 
>>1.0.1-rc2 I hope ?
>>
>>- Joe
>>
>>_______________________________________________
>>linux-lvm mailing list
>>linux-lvm@sistina.com
>>http://lists.sistina.com/mailman/listinfo/linux-lvm
>>read the LVM HOW-TO at
>>
>http://www.sistina.com/lvm/Pages/howto.html
>
>
>__________________________________________________
>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/linux-lvm
>read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
>

^ 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

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

[-- Attachment #1: Type: text/plain, Size: 2816 bytes --]

hi tried adding the macros but it didn't work for me


Jean-Eric Cuendet wrote:

>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
>>
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@sistina.com
>http://lists.sistina.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
>


[-- Attachment #2: lvm-1.0.1rc2-2.4.5 --]
[-- Type: text/plain, Size: 2078 bytes --]

/usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe  -march=i686    -c -o lvm.o lvm.c
lvm.c: In function `__extend_reduce':
lvm.c:2329: warning: implicit declaration of function `min'
lvm.c:2329: parse error before `uint'
lvm.c:2343: parse error before `uint'
lvm.c:2280: warning: `end' might be used uninitialized in this function
lvm.c:2339: warning: `end' might be used uninitialized in this function
make[3]: *** [lvm.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.5/drivers/md'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.5/drivers/md'
make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.5/drivers'
make: *** [_dir_drivers] Error 2


##########################################################################################################
and after adding 

#define min(a,b) (((a)<(b))?(a):(b)) 
#define max(a,b) (((a)>(b))?(a):(b)) 
##########################################################################################################


make[3]: Entering directory `/usr/src/linux-2.4.5/drivers/md'
/usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe  -march=i686    -c -o lvm.o lvm.c
lvm.c:2332: macro `min' used with too many (3) args
lvm.c:2346: macro `min' used with too many (3) args
lvm.c: In function `__extend_reduce':
lvm.c:2332: parse error before `<'
lvm.c:2332: parse error before `:'
lvm.c:2346: parse error before `<'
lvm.c:2346: parse error before `:'
lvm.c:2283: warning: `end' might be used uninitialized in this function
lvm.c:2342: warning: `end' might be used uninitialized in this function
make[3]: *** [lvm.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.5/drivers/md'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.5/drivers/md'
make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.5/drivers'
make: *** [_dir_drivers] Error 2

^ 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.