Skip to contentSkip to conversation

2.4.5 & Adaptec 7890 U2W Controller solved, LVM0.9.1 b7FAILS.

linux-lvm Bas 1 participant 1 message Jun 7, 2001

lore
Share & tools
lore

Bas

author
#0 lore raw
Quoted 11 lines · Bas
Quoted 10 lines

----- Original Message -----
From: Seth Mos <[email protected]>
To: Bas <[email protected]>; <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, June 06, 2001 11:30 AM
Subject: [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines · Bas

You're right. Today I downloaded the default kernel coming from ftp.kernel.org. Patched it using 06042001-xfs-patch. It compiled and

it

Quoted 47 lines
Quoted 47 lines
Quoted 1 line
Quoted 1 line

runs. But when I patch this kernel to 0.9.1 beta 7, (CVS or standard

patch

Quoted 6 lines
Quoted 6 lines

makes no difference) it fails to compile.

Now this:

drivers/md/mddev.o: In function `__update_hardblocksize':
drivers/md/mddev.o(.text+0x22d6): undefined reference to

`get_hardblocksize'

Quoted 1 line
Quoted 1 line

drivers/md/mddev.o(.text+0x2312): undefined reference to

`get_hardblocksize'

Quoted 15 lines
Quoted 7 lines

make[1]: *** [kallsyms] Error 1
make: *** [vmlinux] Error 2

How can I fix this.

Thanks again,
Bas.

Patch was posted on the list a few days ago

Here you go

drivers/md/lvm.c Sun May 6 14:55:06 2001 line 1794

Quoted 4 lines
drivers/md/lvm.c Sun May 6 14:55:06 2001 renamed from drivers/md/lvm.c.orig Sun May 6 14:54:39 2001 +0 -1
@@ -1791,7 +1791,7 @@
         int max_hardblocksize = 0, hardblocksize;
 
         for (le = 0; le < lv->lv_allocated_le; le++) {
-               hardblocksize =

get_hardblocksize(lv->lv_current_pe[le].dev);

drivers/md/lvm.c Sun May 6 14:55:06 2001 line 1794

Quoted 1 line
drivers/md/lvm.c Sun May 6 14:55:06 2001 renamed from drivers/md/lvm.c.orig Sun May 6 14:54:39 2001 +1 -0
+               hardblocksize =

get_hardsect_size(lv->lv_current_pe[le].dev);

drivers/md/lvm.c Sun May 6 14:55:06 2001 line 1805

Quoted 10 lines
drivers/md/lvm.c Sun May 6 14:55:06 2001 renamed from drivers/md/lvm.c.orig Sun May 6 14:54:39 2001 +1 -1
                 if (hardblocksize == 0)
                         hardblocksize = 512;
                 if (hardblocksize > max_hardblocksize)
@@ -1801,7 +1801,7 @@
         if (lv->lv_access & LV_SNAPSHOT) {
                 for (e = 0; e < lv->lv_remap_end; e++) {
                         hardblocksize =
-                               get_hardblocksize(
+                               get_hardsect_size(
 

lv->lv_block_exception[e].rdev_new);

Quoted 3 lines
drivers/md/lvm.c Sun May 6 14:55:06 2001 renamed from drivers/md/lvm.c.orig Sun May 6 14:54:39 2001 +0 -0
                         if (hardblocksize == 0)
                                 hardblocksize = 512;
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

Hope it's complete and ok
Otherwise you can find it the archives under "2.4.5 compiles almost"

Thanks, but nothing there ... (Searched for 2.4.5, almost and browsed throught the list (may & june)). Can't apply this patch by the way.

Thanks,

Quoted 10 lines
Quoted 7 lines

Bas.

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Replace get_hardblocksize with get_hardsect_size there should be 2 instances of it in lvm.c

Thanks. It works.

Quoted 3 lines

P.S. search for "hardsect" & you will see that this has been answered before.

Ok, will do that first.

Bas.