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:
parent
bbf83db14a
commit
ce7ed2c0a9
@ -86,9 +86,9 @@ enum dm_event_type {
|
||||
/* FIXME Replace device with standard name/uuid/devno choice */
|
||||
/* Interface changes:
|
||||
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(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.
|
||||
// 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);
|
||||
/* 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? */
|
||||
|
@ -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,
|
||||
uint32_t region_size,
|
||||
unsigned clustered,
|
||||
uint32_t flags,
|
||||
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,
|
||||
const char *dev_name,
|
||||
const char *dlid,
|
||||
|
@ -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,
|
||||
uint32_t region_size,
|
||||
unsigned clustered,
|
||||
uint32_t flags,
|
||||
const char *log_uuid,
|
||||
unsigned area_count)
|
||||
unsigned area_count,
|
||||
uint32_t flags)
|
||||
{
|
||||
struct dm_tree_node *log_node = NULL;
|
||||
struct load_segment *seg;
|
||||
|
Loading…
Reference in New Issue
Block a user