1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-20 11:33:15 +03:00

Enable use of new multi-segment registration for static registration too.

so it allows this use:

#ifdef MYNEWSEG_INTERNAL
        if (!init_mynewseg_segtypes(&seglib))
                        return 0;
#endif
This commit is contained in:
Milan Broz
2009-07-14 12:17:14 +00:00
parent 4665b5aecf
commit cd93b0470b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
Version 2.02.49 - Version 2.02.49 -
================================ ================================
Enable use of new multi-segment registration for static registration too.
Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again. Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again.
Add unit test case for liblvm VG create/delete APIs. Add unit test case for liblvm VG create/delete APIs.
Add liblvm APIs to implement creation and deletion of VGs. Add liblvm APIs to implement creation and deletion of VGs.

View File

@@ -855,10 +855,10 @@ static int _init_single_segtype(struct segtype_library *seglib)
static int _init_segtypes(struct cmd_context *cmd) static int _init_segtypes(struct cmd_context *cmd)
{ {
struct segment_type *segtype; struct segment_type *segtype;
struct segtype_library seglib = { .cmd = cmd };
#ifdef HAVE_LIBDL #ifdef HAVE_LIBDL
const struct config_node *cn; const struct config_node *cn;
struct segtype_library seglib;
#endif #endif
if (!(segtype = init_striped_segtype(cmd))) if (!(segtype = init_striped_segtype(cmd)))