[linux-lvm] [PATCH] lvdisplay: dispaly correct status on linear type

heming.zhao at suse.com heming.zhao at suse.com
Wed Aug 26 15:58:26 UTC 2020


Same as the commit writing, this commit is code enhancement not bugfix.

Last commit 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 had been verified by one of suse customer.
They did test for types: mirror, raid0, raid1, raid5, linear.

For this commit, I only verified linear & raid cases. I have little experience with type: snapshot, thin, vdo, cache etc. So I am not sure whether this commit contains any bug when LV type is not linear & raid.


On 8/26/20 11:50 PM, Zhao Heming wrote:
> It commit is enhancement for 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571
> 1d0dc74f9147 only supports all raid type, this commit adds linear type.
> 
> With this patch, for linear type LV, one of two disks missing,
> lvdisplay will show
> from:
>    LV Status              available (partial)
> to:
>    LV Status              NOT available (partial)
> 
> Signed-off-by: Zhao Heming <heming.zhao at suse.com>
> ---
>   lib/display/display.c            |  7 ++-
>   lib/metadata/lv_manip.c          | 76 ++++++++++++++++++++++++++++++++
>   lib/metadata/metadata-exported.h |  1 +
>   lib/metadata/segtype.h           |  1 -
>   lib/raid/raid.c                  | 54 -----------------------
>   5 files changed, 80 insertions(+), 59 deletions(-)




More information about the linux-lvm mailing list