1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Change dm_tree_node_add_mirror_target_log parm order

This commit is contained in:
Alasdair Kergon 2005-12-19 21:03:17 +00:00
parent bbf83db14a
commit ce7ed2c0a9
3 changed files with 7 additions and 7 deletions

View File

@ -86,9 +86,9 @@ enum dm_event_type {
/* FIXME Replace device with standard name/uuid/devno choice */ /* FIXME Replace device with standard name/uuid/devno choice */
/* Interface changes: /* Interface changes:
First register a handler, passing in a unique ref for the device. */ First register a handler, passing in a unique ref for the device. */
int dm_event_register_handler(const char *dso_name, const char *device); // int dm_event_register_handler(const char *dso_name, const char *device);
int dm_event_register(const char *dso_name, const char *name, const char *uuid, uint32_t major, uint32_t minor, enum dm_event_type events); // int dm_event_register(const char *dso_name, const char *name, const char *uuid, uint32_t major, uint32_t minor, enum dm_event_type events);
Or (better?) add to task structure and use existing functions - run a task to register/unregister events - we may need to run task withe that with the new event mechanism anyway, then the dso calls just hook in. /* Or (better?) add to task structure and use existing functions - run a task to register/unregister events - we may need to run task withe that with the new event mechanism anyway, then the dso calls just hook in.
*/ */
/* FIXME Missing consts? */ /* FIXME Missing consts? */

View File

@ -340,9 +340,9 @@ int dm_tree_node_add_mirror_target(struct dm_tree_node *node,
int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node, int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node,
uint32_t region_size, uint32_t region_size,
unsigned clustered, unsigned clustered,
uint32_t flags,
const char *log_uuid, const char *log_uuid,
unsigned area_count); unsigned area_count,
uint32_t flags);
int dm_tree_node_add_target_area(struct dm_tree_node *node, int dm_tree_node_add_target_area(struct dm_tree_node *node,
const char *dev_name, const char *dev_name,
const char *dlid, const char *dlid,

View File

@ -1662,9 +1662,9 @@ int dm_tree_node_add_striped_target(struct dm_tree_node *node,
int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node, int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node,
uint32_t region_size, uint32_t region_size,
unsigned clustered, unsigned clustered,
uint32_t flags,
const char *log_uuid, const char *log_uuid,
unsigned area_count) unsigned area_count,
uint32_t flags)
{ {
struct dm_tree_node *log_node = NULL; struct dm_tree_node *log_node = NULL;
struct load_segment *seg; struct load_segment *seg;