Accept 'F' for devices with failed flush. Signed-off-by: Mikulas Patocka --- daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) Index: LVM2.2.02.54/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c =================================================================== --- LVM2.2.02.54.orig/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c 2009-11-17 09:12:40.000000000 +0100 +++ LVM2.2.02.54/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c 2009-11-17 10:56:43.000000000 +0100 @@ -94,12 +94,23 @@ static int _get_mirror_event(char *param syslog(LOG_ERR, "Mirror device, %s, has failed.\n", args[i]); r = ME_FAILURE; } + if (dev_status_str[i] == 'F') { + syslog(LOG_ERR, "Flush on mirror device, %s, has failed.\n", args[i]); + r = ME_FAILURE; + } /* Check for bad disk log device */ - if (log_argc > 1 && log_status_str[0] == 'D') { - syslog(LOG_ERR, "Log device, %s, has failed.\n", - args[2 + num_devs + log_argc]); - r = ME_FAILURE; + if (log_argc > 1) { + if (log_status_str[0] == 'D') { + syslog(LOG_ERR, "Log device, %s, has failed.\n", + args[2 + num_devs + log_argc]); + r = ME_FAILURE; + } + if (log_status_str[0] == 'F') { + syslog(LOG_ERR, "Flush on log device, %s, has failed.\n", + args[2 + num_devs + log_argc]); + r = ME_FAILURE; + } } if (r == ME_FAILURE)