mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
o Initialisation tweaks.
o Use different major number so it can co-exist with LVM 1.
This commit is contained in:
parent
8f8fbdc399
commit
e753457e7d
@ -32,8 +32,8 @@
|
|||||||
|
|
||||||
#include <linux/major.h>
|
#include <linux/major.h>
|
||||||
|
|
||||||
/* FIXME: steal LVM's devices for now */
|
/* FIXME: Use value from local range for now, for co-existence with LVM 1 */
|
||||||
#define DM_BLK_MAJOR LVM_BLK_MAJOR
|
#define DM_BLK_MAJOR 124
|
||||||
|
|
||||||
struct mapped_device;
|
struct mapped_device;
|
||||||
typedef unsigned int offset_t;
|
typedef unsigned int offset_t;
|
||||||
|
@ -61,7 +61,7 @@ int register_map_target(const char *name, dm_ctr_fn ctr,
|
|||||||
return -1; /* FIXME: what's a good return value ? */
|
return -1; /* FIXME: what's a good return value ? */
|
||||||
}
|
}
|
||||||
|
|
||||||
t->name = (char *) (t + 1);
|
t->name = name;
|
||||||
t->ctr = ctr;
|
t->ctr = ctr;
|
||||||
t->dtr = dtr;
|
t->dtr = dtr;
|
||||||
t->map = map;
|
t->map = map;
|
||||||
|
@ -157,7 +157,7 @@ static int _init(void)
|
|||||||
if ((ret = dm_init_fs()))
|
if ((ret = dm_init_fs()))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!dm_std_targets())
|
if (dm_std_targets())
|
||||||
return -EIO; /* FIXME: better error value */
|
return -EIO; /* FIXME: better error value */
|
||||||
|
|
||||||
/* set up the arrays */
|
/* set up the arrays */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user