[PATCH] Improve mirror DSO's failure logging

Jonathan Brassow <[email protected]> Tue, 24 Nov 2009 09:36:53 -0600
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
On Nov 23, 2009, at 4:00 PM, Takahiro Yasui wrote:

> I'm afraid that only an error status of the device with the smallest  
> index
> of the dev_status_str[] array will be reported. For example, if the  
> status
> is "ARD," "r" will have a value, ME_READ_FAILURE. Then, a write  
> failure
> event (ME_PRIMARY_WRITE_FAILURE and ME_SECONDARY_WRITE_FAILURE)  
> won't be
> detected in process_event(). I think that "WRITE_FAILURE" events  
> should
> have priority.
>
> Thanks,
> Taka

Good catch Taka, I agree.  Otherwise, I welcome this patch.

  brassow