[dm-devel] [PATCH V3 1/5] multipathd: adopt static char* arr in daemon_status
Martin Wilck
mwilck at suse.com
Mon Aug 31 14:37:38 UTC 2020
On Sat, 2020-08-29 at 11:03 +0800, Zhiqiang Liu wrote:
> We adopt static char* array (demon_status_msg) in daemon_status func,
> so it looks more simpler and easier to expand.
>
> V2->V3:
> - add default case in sd_notify_status to fix compile error
> V1->V2:
> - use "int" as the type of "status" (suggested by Martin)
>
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26 at huawei.com>
> Signed-off-by: lixiaokeng <lixiaokeng at huawei.com>
> ---
> multipathd/main.c | 32 +++++++++++++++++---------------
> multipathd/main.h | 3 ++-
> 2 files changed, 19 insertions(+), 16 deletions(-)
>
Reviewed-by: Martin Wilck <mwilck at suse.com>
More information about the dm-devel
mailing list