mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5.20]newbee call for help getting lvm working
@ 2002-06-06 17:02 Svetoslav Slavtchev
  2002-06-08 22:26 ` Anders Gustafsson
  0 siblings, 1 reply; 3+ messages in thread
From: Svetoslav Slavtchev @ 2002-06-06 17:02 UTC (permalink / raw)
  To: linux-kernel

Hi ,
i was trying to get the patch from Anders Gustafsson working in 2.5.20,
but i'm getting  by compilation:
....
lvm.c: In function `__update_hardsectsize':
lvm.c:2021: warning: implicit declaration of function `get_hardsect_size'
...
and by make modules_install:
...........
depmod: *** Unresolved symbols in 
/lib/modules/2.5.20-dj3-lvm-xfs2/kernel/drivers/md/lvm-mod.o
depmod:         get_hardsect_size
make: *** [_modinst_post] Error 1
............

it seems that this function is disapeared between 2.5.18 and 2.5.20
(the patch from Anders Gustafsson is against 2.5.18)

can smbd please help me to solve this issue

regards

svetljo

the patch : 
http://www.linuxhq.com/kernel/v2.5/unofficial/v2.5.18/patches/lvm-cleanups-2.5.18.patch

and the correspondig text from drivers/md/lvm.c :
..............
static void __update_hardsectsize(kern_lv_t *lv) {
    int le, e;
    int max_hardsectsize = 0, hardsectsize;

    for (le = 0; le < lv->lv_allocated_le; le++) {
        hardsectsize = bdev_hardsect_size(lv->lv_current_pe[le].bdev);
        if (hardsectsize == 0)
            hardsectsize = 512;
        if (hardsectsize > max_hardsectsize)
            max_hardsectsize = hardsectsize;
    }

    /* only perform this operation on active snapshots */
    if ((lv->lv_access & LV_SNAPSHOT) &&
        (lv->lv_status & LV_ACTIVE)) {
        for (e = 0; e < lv->lv_remap_end; e++) {
            hardsectsize =  get_hardsect_size( 
lv->lv_block_exception[e].rdev_new);
            if (hardsectsize == 0)
                hardsectsize = 512;
            if (hardsectsize > max_hardsectsize)
                max_hardsectsize = hardsectsize;
        }
    }
}
............................


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

end of thread, other threads:[~2002-06-09 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-06 17:02 [2.5.20]newbee call for help getting lvm working Svetoslav Slavtchev
2002-06-08 22:26 ` Anders Gustafsson
2002-06-09 10:24   ` Svetoslav Slavtchev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®