Skip to contentSkip to conversation

Probleme while compiling last CVS kernel.

parisc-linux Bruno Vidal 3 participants 10 messages Jun 6, 2002 – Jun 7, 2002

lore
Share & tools
lore
#0 lore raw

Hi
I've started this morning to download latest CVS bits.
I've prepared a patche for this version from my dump driver,
and try to recompile everything, but I've found a problem
with LVM !!! See:
make dep: okay
make vmlinux:
ioctl32.c:2009: warning: assignment makes pointer from integer without a cast ioctl32.c:2030: structure has no member named `inode'
ioctl32.c:2049: warning: passing arg 2 of lcopy_from_user' makes pointer from integer without a cast ioctl32.c:2067: structure has no member named inode'
ioctl32.c:2078: warning: passing arg 2 of lcopy_from_user' makes pointer from integer without a cast ioctl32.c:2082: warning: assignment makes integer from pointer without a cast ioctl32.c:2086: structure has no member named inode'
ioctl32.c:1985: warning: `v' might be used uninitialized in this function

-> in this file it is:

	v->pv[i]->pe = NULL; v->pv[i]->inode = NULL;
and
	p.pe = NULL; p.inode = NULL; 

It complains that there is no "inode" in structure pv[i]. So in this line v is a struct vg_t. In this structure pv[i] is a pv_t structure, I've found this struture in include/linux/lvm.h, and it is right, there is no "inode", in it !!!! Is this LVM code broken ?

typedef struct pv_v2 {
        char id[2];             /* Identifier */
        unsigned short version; /* HM lvm version */
        lvm_disk_data_t pv_on_disk;
        lvm_disk_data_t vg_on_disk;
        lvm_disk_data_t pv_uuidlist_on_disk;
        lvm_disk_data_t lv_on_disk;
        lvm_disk_data_t pe_on_disk;
        char pv_name[NAME_LEN];
        char vg_name[NAME_LEN];
        char system_id[NAME_LEN];       /* for vgexport/vgimport */
        kdev_t pv_dev;
        uint pv_number;
        uint pv_status;
        uint pv_allocatable;
        uint pv_size;           /* HM */
        uint lv_cur;
        uint pe_size;
        uint pe_total;
        uint pe_allocated;
        uint pe_stale;          /* for future use */
        pe_disk_t *pe;          /* HM */
        struct block_device *bd;
        char pv_uuid[UUID_LEN+1];

#ifndef __KERNEL__
uint32_t pe_start; /* in sectors */
#endif
} pv_t;

Signature · 3 lines
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	[email protected]

begin:vcard
n:Bruno;VIDAL
tel;fax:01-69-82-60-14
tel;work:01-69-29-42-71
x-mozilla-html:TRUE
url:www.france.hp.com
org:Solution Center
version:2.1
email;internet:[email protected]
title:Expert Logiciel Environnement Haute Disponibilité
adr;quoted-printable:;;HP France=0D=0A;Z.A de Courtaboeuf;1 Av. du Canada;91947 Les Ulis cedex;France x-mozilla-cpt:;26208
fn:VIDAL Bruno
end:vcard

#1 lore raw
Quoted 5 lines · Bruno Vidal

Hi
I've started this morning to download latest CVS bits. I've prepared a patche for this version from my dump driver, and try to recompile everything, but I've found a problem with LVM !!! See:

Does LVM work on 64bit HP ?

I remember doing the ioctl32.c support for sparc64 some time ago but I can easily beleive that the mods to that file haven't been propogated to other 32/64bit systems - if you're feeling adventurous and really need LVM then you might be able to cut out those bits and drop them into the HP.

On the other hand you could try LVM2. I know LVM2 runs well on my 32bit HP machines and also on 64bit Alpha.

patrick

#2 lore raw

Hi all,

I do not have the opportunity to run a 64bits kernel but for 32bits kernel I run a patched kernel with last stable lvm-1.0.4 (and it is runing fine for at least two month).
Humm which CONFIG_ parameter do I have to check to compile this src for 64-bits kernel.
I can so try to see at least if it compiles well and report results.

Joel

Quoting Patrick Caulfield <[email protected]>:

Quoted 22 lines · Bruno Vidal
Quoted 5 lines

Hi
I've started this morning to download latest CVS bits. I've prepared a patche for this version from my dump driver, and try to recompile everything, but I've found a problem with LVM !!! See:

Does LVM work on 64bit HP ?

I remember doing the ioctl32.c support for sparc64 some time ago but I can
easily beleive that the mods to that file haven't been propogated to other
32/64bit systems - if you're feeling adventurous and really need LVM then you
might be able to cut out those bits and drop them into the HP.

On the other hand you could try LVM2. I know LVM2 runs well on my 32bit HP
machines and also on 64bit Alpha.

Quoted 9 lines

patrick

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

#3 lore raw
Quoted 8 lines · On Thu, Jun 06, 2002 at 08:34:08PM +0200, [email protected] wrote:

Hi all,

I do not have the opportunity to run a 64bits kernel but for 32bits kernel I run a patched kernel with last stable lvm-1.0.4 (and it is runing fine for at least two month).
Humm which CONFIG_ parameter do I have to check to compile this src for 64-bits kernel.
I can so try to see at least if it compiles well and report results.

I don't know about the 64bit compile switches (I only have a 32bit HP box) but to get LVM running you'll need to take all the bits from arch/sparc64/kernel/ioctl32.c inside the

#if defined(CONFIG_BLK_DEV_LVM) || defined(CONFIG_BLK_DEV_LVM_MODULE)

#endif

and replace the bits from arch/parisc/kernel/ioctl32.c with them. I suspect it will work. If it does then get a patch together and put it into the CVS !

I'm pleased (though not very surprised) that LVM works OK on 32 bit machines.

patrick
aka [email protected]

#4 lore raw

Quoting Patrick Caulfield <[email protected]>:

...

Quoted 5 lines

I don't know about the 64bit compile switches (I only have a 32bit HP box) but
to get LVM running you'll need to take all the bits from arch/sparc64/kernel/ioctl32.c inside the

Quoted 8 lines

#if defined(CONFIG_BLK_DEV_LVM) || defined(CONFIG_BLK_DEV_LVM_MODULE)

#endif

and replace the bits from arch/parisc/kernel/ioctl32.c with them. I suspect it
will work. If it does then get a patch together and put it into the CVS !

Great, I will see.

Quoted 3 lines

I'm pleased (though not very surprised) that LVM works OK on 32 bit machines.

So surprised too ??

Many thanks,
Joel

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

#5 lore raw

Quoting [email protected]:

Quoted 29 lines

Quoting Patrick Caulfield <[email protected]>:

...

Quoted 5 lines

I don't know about the 64bit compile switches (I only have a 32bit HP box) but
to get LVM running you'll need to take all the bits from arch/sparc64/kernel/ioctl32.c inside the

Quoted 7 lines

#if defined(CONFIG_BLK_DEV_LVM) || defined(CONFIG_BLK_DEV_LVM_MODULE)

#endif

and replace the bits from arch/parisc/kernel/ioctl32.c with them. I suspect it
will work. If it does then get a patch together and put it into the

CVS

Quoted 1 line

!

Great, I will see.

Quoted 3 lines

I'm pleased (though not very surprised) that LVM works OK on 32 bit machines.

So surprised too ??

Many thanks,
Joel

Quoted 9 lines

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

#6 lore raw
In reply to [email protected]
Quoted 7 lines · On Fri, Jun 07, 2002 at 08:05:51AM +0200, [email protected] wrote:

Quoting Patrick Caulfield <[email protected]>:

Quoted 3 lines

I'm pleased (though not very surprised) that LVM works OK on 32 bit machines.

So surprised too ??

Well, a little. I've seen enough porting problems in my time that it always suprises me a little when a recompile on an untested platform "just works" !

patrick

#8 lore raw
Quoted 4 lines · On Fri, Jun 07, 2002 at 09:28:07AM +0200, [email protected] wrote:

Quoting [email protected]:

Quoted 2 lines

Quoting Patrick Caulfield <[email protected]>:

Quoted 8 lines
Quoted 3 lines

...

So surprised too ??

Not anymore, in fact all seems already include in ioctl32.

So I just have to find how to compile a 64bits kernel. There should it be some hack to bring it works.

The stuff that's in there is for LVM0.8, whereas LVM 1.0 is in the rest of the kernel. The structures have changed slightly which is why it won't compile ATM.

patrick

#9 lore raw

Quoting Patrick Caulfield <[email protected]>:

Quoted 6 lines

The stuff that's in there is for LVM0.8, whereas LVM 1.0 is in the rest of the
kernel. The structures have changed slightly which is why it won't compile ATM.

Ok I will have a more detailed look so.

Tanks again,
Joel

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)