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

Add private variable to dmeventd shared library interface.

This commit is contained in:
Alasdair Kergon 2007-01-23 17:40:40 +00:00
parent d28dfb5720
commit 3329c69865
3 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.20 -
===================================
Add private variable to dmeventd shared library interface.
Long-lived processes write out persistent dev cache in refresh_toolcontext().
Fix refresh_toolcontext() always to wipe persistent device filter cache.
Add is_long_lived to toolcontext.

View File

@ -164,7 +164,8 @@ static int _remove_failed_devices(const char *device)
return (r == 1) ? 0 : -1;
}
void process_event(struct dm_task *dmt, enum dm_event_mask event)
void process_event(struct dm_task *dmt, enum dm_event_mask event,
void **unused __attribute((unused)))
{
void *next = NULL;
uint64_t start, length;
@ -221,7 +222,8 @@ void process_event(struct dm_task *dmt, enum dm_event_mask event)
pthread_mutex_unlock(&_event_mutex);
}
int register_device(const char *device, const char *uuid, int major, int minor)
int register_device(const char *device, const char *uuid, int major, int minor,
void **unused __attribute((unused)))
{
int r = 0;
@ -257,7 +259,8 @@ out:
return r;
}
int unregister_device(const char *device, const char *uuid, int major, int minor)
int unregister_device(const char *device, const char *uuid, int major, int minor,
void **unused __attribute((unused)))
{
pthread_mutex_lock(&_register_mutex);

View File

@ -164,7 +164,8 @@ static int _remove_failed_devices(const char *device)
return (r == 1) ? 0 : -1;
}
void process_event(struct dm_task *dmt, enum dm_event_mask event)
void process_event(struct dm_task *dmt, enum dm_event_mask event,
void **unused __attribute((unused)))
{
void *next = NULL;
uint64_t start, length;
@ -221,7 +222,8 @@ void process_event(struct dm_task *dmt, enum dm_event_mask event)
pthread_mutex_unlock(&_event_mutex);
}
int register_device(const char *device, const char *uuid, int major, int minor)
int register_device(const char *device, const char *uuid, int major, int minor,
void **unused __attribute((unused)))
{
int r = 0;
@ -257,7 +259,8 @@ out:
return r;
}
int unregister_device(const char *device, const char *uuid, int major, int minor)
int unregister_device(const char *device, const char *uuid, int major, int minor,
void **unused __attribute((unused)))
{
pthread_mutex_lock(&_register_mutex);