1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.

This commit is contained in:
Alasdair Kergon 2007-01-25 23:32:29 +00:00
parent 41aec14ed5
commit aca043364e
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.20 - Version 2.02.20 -
=================================== ===================================
dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.
Add devices/ignore_suspended_devices to ignore suspended dm devices. Add devices/ignore_suspended_devices to ignore suspended dm devices.
Add some missing close() and fclose() return code checks. Add some missing close() and fclose() return code checks.
Fix exit statuses of reporting tools (2.02.19). Fix exit statuses of reporting tools (2.02.19).

View File

@ -151,7 +151,7 @@ static int _remove_failed_devices(const char *device)
} }
/* FIXME Is any sanity-checking required on %s? */ /* FIXME Is any sanity-checking required on %s? */
if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --removemissing %s", vg)) { if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --config devices{ignore_suspended_devices=1} --removemissing %s", vg)) {
/* this error should be caught above, but doesn't hurt to check again */ /* this error should be caught above, but doesn't hurt to check again */
syslog(LOG_ERR, "Unable to form LVM command: Device name too long"); syslog(LOG_ERR, "Unable to form LVM command: Device name too long");
dm_pool_empty(_mem_pool); /* FIXME: not safe with multiple threads */ dm_pool_empty(_mem_pool); /* FIXME: not safe with multiple threads */

View File

@ -151,7 +151,7 @@ static int _remove_failed_devices(const char *device)
} }
/* FIXME Is any sanity-checking required on %s? */ /* FIXME Is any sanity-checking required on %s? */
if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --removemissing %s", vg)) { if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --config devices{ignore_suspended_devices=1} --removemissing %s", vg)) {
/* this error should be caught above, but doesn't hurt to check again */ /* this error should be caught above, but doesn't hurt to check again */
syslog(LOG_ERR, "Unable to form LVM command: Device name too long"); syslog(LOG_ERR, "Unable to form LVM command: Device name too long");
dm_pool_empty(_mem_pool); /* FIXME: not safe with multiple threads */ dm_pool_empty(_mem_pool); /* FIXME: not safe with multiple threads */