* [linux-lvm] Bug in the min and max macros in lvm-snap.c
@ 2001-08-28 13:57 Hostmaster (www)
2001-08-28 17:19 ` José Luis Domingo López
0 siblings, 1 reply; 3+ messages in thread
From: Hostmaster (www) @ 2001-08-28 13:57 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Hi,
I'm installing the lvm_1.0.1-rc1 patch to a RedHat install (kernel 2.4.3-12).
After installing the kernel patch, the kernel build was failing on the min and max macros in lvm-snap.c.
It appears the new version changed the min and max macros in the lvm-internal.h header file to include type. However, it appears that the lvm-snap.c min and max are still using the old definition.
Since I'm not intending to use the snap functionality in the near future. I used this for quick workaround, I just added a snapmin and and snapmax macro definition in lvm-internal.h and changed the instances of min and max in the lvm-snap.c to use the new snapmin and snapmax macros. This allows the kernel to build.
Thanks,
David Lightsey
[-- Attachment #2: Type: text/html, Size: 1571 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Bug in the min and max macros in lvm-snap.c
2001-08-28 13:57 [linux-lvm] Bug in the min and max macros in lvm-snap.c Hostmaster (www)
@ 2001-08-28 17:19 ` José Luis Domingo López
2001-08-28 16:38 ` Joe Thornber
0 siblings, 1 reply; 3+ messages in thread
From: José Luis Domingo López @ 2001-08-28 17:19 UTC (permalink / raw)
To: linux-lvm
On Tuesday, 28 August 2001, at 07:57:20 -0600,
Hostmaster (www) wrote:
> Hi,
>
> I'm installing the lvm_1.0.1-rc1 patch to a RedHat install (kernel 2.4.3-12).
>
> After installing the kernel patch, the kernel build was failing on the min and max macros in lvm-snap.c.
>
Maybe I'm wrong, but AFAIR Linus changed max and min macros on 2.4.9, so
they are not backwards compatible. As lvm_1.0.1-rc1 was intended for
kernel 2.4.9, I suppose it used those new max/min macros, so LVM 1.0.1-rc1
doesn't work with kernels < 2.4.9.
Check last week's linux kernel mailing list archives to check what people
think about this sudden change :)
--
Jos� Luis Domingo L�pez
Linux Registered User #189436 Debian GNU/Linux Potato (P166 64 MB RAM)
jdomingo EN internautas PUNTO org => � Spam ? Atente a las consecuencias
jdomingo AT internautas DOT org => Spam at your own risk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Bug in the min and max macros in lvm-snap.c
2001-08-28 17:19 ` José Luis Domingo López
@ 2001-08-28 16:38 ` Joe Thornber
0 siblings, 0 replies; 3+ messages in thread
From: Joe Thornber @ 2001-08-28 16:38 UTC (permalink / raw)
To: linux-lvm
On Tue, Aug 28, 2001 at 05:19:09PM +0000, Jos? Luis Domingo L?pez wrote:
> On Tuesday, 28 August 2001, at 07:57:20 -0600,
> Hostmaster (www) wrote:
>
> > Hi,
> >
> > I'm installing the lvm_1.0.1-rc1 patch to a RedHat install (kernel 2.4.3-12).
> >
> > After installing the kernel patch, the kernel build was failing on the min and max macros in lvm-snap.c.
> >
> Maybe I'm wrong, but AFAIR Linus changed max and min macros on 2.4.9, so
> they are not backwards compatible. As lvm_1.0.1-rc1 was intended for
> kernel 2.4.9, I suppose it used those new max/min macros, so LVM 1.0.1-rc1
> doesn't work with kernels < 2.4.9.
It should work with both 2.4.9 kernels and older ones. I just checked
CVS and the lvm-snap.c looks correct.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-28 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-28 13:57 [linux-lvm] Bug in the min and max macros in lvm-snap.c Hostmaster (www)
2001-08-28 17:19 ` José Luis Domingo López
2001-08-28 16:38 ` Joe Thornber
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.