linux2.4.10/lvm1.0.1rc3 does not compile
If I am not mistaken. the function
static void __upadte_hardsectsize(lv_t *lv) has been declared and called as it is in lvm.c. But in the definition it has been written as
static void __update_hardblocksize(lv_t *lv)
so changing __update_hardblocksize(lv_t *lv)
in ~/LVM/1.0.1-rc3/kernel/lvm.c and~linux-2.4.10/drivers/md/lvm.c
to __update_hardsectsize(lv_t *lv)
should resolve this compilation problem.
regards,
Aman Shahi.
Quoted 1 line
LVM 1.0.1rc3 does not compile (link) with Linux
2.4.10 >on my system.
Quoted 2 lines
Does anyone know what went wrong?
Regards, Markus
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
Quoted 6 lines · Aman Shahi
so changing
__update_hardblocksize(lv_t *lv)
in~/LVM/1.0.1-rc3/kernel/lvm.cand~linux-2.4.10/drivers/md/lvm.c
to__update_hardsectsize(lv_t *lv)
should resolve this compilation problem.
Thanks, that did the trick for me.
After that vgscan did not find any Volume Groups in 2.4.10, while it did in 2.4.7 (with LVM 1.0). Interesting: using "vgrename" on 2.4.7 helped here at last (After trying lots of other non-destructive changes to the VG/underlying PVs) . I just renamed the Group vg1 to vg0 and now vgscan detects it on 2.4.10, too.
This incident leaves a bitter taste somehow...
Regards, Markus
Quoted 11 lines · Aman Shahi
If I am not mistaken. the function
static void__upadte_hardsectsize(lv_t *lv)has been declared and called as it is inlvm.c. But in the definition it has been written as
static void__update_hardblocksize(lv_t *lv)so changing
__update_hardblocksize(lv_t *lv)
in~/LVM/1.0.1-rc3/kernel/lvm.cand~linux-2.4.10/drivers/md/lvm.c
to__update_hardsectsize(lv_t *lv)
should resolve this compilation problem.
Yes, this is my fault. I was moving over some minor changes from my other LVM tree and trying to generate a patch for Linus, but I must have made a mistake in search & replace of variable names hitting this function name as well. Ah, the joys of having so many LVM source trees to work with.
I've fixed the CVS, if someone wants to make a new -rc4 release quickly.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert