1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +03:00

fix recent checkins

This commit is contained in:
Alasdair Kergon 2007-01-15 19:47:49 +00:00
parent 3a8dff3a62
commit 01dc83b936
2 changed files with 3 additions and 2 deletions

View File

@ -855,7 +855,7 @@ static int _register_for_event(struct message_data *message_data)
events. However, if timeout thread cannot be started, it
usually means we are so starved on resources that we are
almost as good as dead already... */
if (thread->events & DM_EVENT_TIMEOUT) {
if (thread_new->events & DM_EVENT_TIMEOUT) {
ret = -_register_for_timeout(thread);
if (ret) {
_unlock_mutex();

View File

@ -426,6 +426,7 @@ static struct dm_task *_get_device_info(const struct dm_event_handler *dmevh)
else if (dmevh->major && dmevh->minor) {
dm_task_set_major(dmt, dmevh->major);
dm_task_set_minor(dmt, dmevh->minor);
}
/* FIXME Add name or uuid or devno to messages */
if (!dm_task_run(dmt)) {
@ -433,7 +434,7 @@ static struct dm_task *_get_device_info(const struct dm_event_handler *dmevh)
goto failed;
}
if (!dm_task_get_info(dmt, &info))
if (!dm_task_get_info(dmt, &info)) {
log_error("_get_device_info: failed to get info for device");
goto failed;
}