1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

o Initialisation tweaks.

o Use different major number so it can co-exist with LVM 1.
This commit is contained in:
Alasdair Kergon 2001-08-22 13:46:58 +00:00
parent 8f8fbdc399
commit e753457e7d
3 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@
#include <linux/major.h>
/* FIXME: steal LVM's devices for now */
#define DM_BLK_MAJOR LVM_BLK_MAJOR
/* FIXME: Use value from local range for now, for co-existence with LVM 1 */
#define DM_BLK_MAJOR 124
struct mapped_device;
typedef unsigned int offset_t;

View File

@ -61,7 +61,7 @@ int register_map_target(const char *name, dm_ctr_fn ctr,
return -1; /* FIXME: what's a good return value ? */
}
t->name = (char *) (t + 1);
t->name = name;
t->ctr = ctr;
t->dtr = dtr;
t->map = map;

View File

@ -157,7 +157,7 @@ static int _init(void)
if ((ret = dm_init_fs()))
return ret;
if (!dm_std_targets())
if (dm_std_targets())
return -EIO; /* FIXME: better error value */
/* set up the arrays */