-0.96.09-cvs (2003-03-28)
+0.97.01-cvs (2003-04-02)
dm_task_get_uuid;
dm_task_set_ro;
dm_task_set_newname;
+ dm_task_set_major;
dm_task_set_minor;
dm_task_add_target;
dm_get_next_target;
if (dmt->minor >= 0) {
dmi->flags |= DM_PERSISTENT_DEV_FLAG;
- dmi->dev = MKDEV(0, dmt->minor);
+ dmi->dev = MKDEV((dmt->major >= 0) ? : 0, dmt->minor);
}
if (dmt->uuid)
struct target *head, *tail;
int read_only;
+ int major;
int minor;
union {
struct dm_ioctl *v3;
int dm_task_set_ro(struct dm_task *dmt);
int dm_task_set_newname(struct dm_task *dmt, const char *newname);
int dm_task_set_minor(struct dm_task *dmt, int minor);
+int dm_task_set_major(struct dm_task *dmt, int major);
/*
* Use these to prepare for a create or reload.
dmt->type = type;
dmt->minor = -1;
+ dmt->major = -1;
return dmt;
}
return 1;
}
+int dm_task_set_major(struct dm_task *dmt, int major)
+{
+ dmt->major = major;
+ log_debug("Setting major: %d", dmt->major);
+
+ return 1;
+}
+
int dm_task_set_minor(struct dm_task *dmt, int minor)
{
dmt->minor = minor;