Re: [linux-lvm] [PATCH v2] lib/metadata: add new api lv_is_available()

2020-08-27 Thread heming.z...@suse.com
one line bug: ``` @@ -2061,8 +2149,11 @@ static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data) if (!_lv_each_dependency(lv, _lv_mark_if_partial_collect, )) return_0; - if (baton.partial) + if (baton.partial) { lv->status

[linux-lvm] [PATCH v2] lib/metadata: add new api lv_is_available()

2020-08-27 Thread Zhao Heming
It commit is enhancement for 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 1d0dc74f9147 only supports all raid type, this commit adds new api and extends support scope with linear/mirror type. This patch introduced a new flag NOT_AVAIL_LV, when a lv (includeing sub-lv or child-lv) doesn't work, this

Re: [linux-lvm] [PATCH] lib/metadata: add new api lv_is_available()

2020-08-27 Thread heming.z...@suse.com
please ignore this patch. I forgot to add [patch v2] & history info. On 8/28/20 12:05 AM, Zhao Heming wrote: > It commit is enhancement for 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 > 1d0dc74f9147 only supports all raid type, this commit adds new api > and extends support scope with linear/mirror

[linux-lvm] [PATCH] lib/metadata: add new api lv_is_available()

2020-08-27 Thread Zhao Heming
It commit is enhancement for 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 1d0dc74f9147 only supports all raid type, this commit adds new api and extends support scope with linear/mirror type. This patch introduced a new flag NOT_AVAIL_LV, when a lv (includeing sub-lv or child-lv) doesn't work, this

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

2020-08-27 Thread heming.z...@suse.com
thank you for your kindly review. On 8/27/20 1:03 AM, David Teigland wrote: > On Wed, Aug 26, 2020 at 11:50:44PM +0800, Zhao Heming wrote: >> It commit is enhancement for 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571 >> 1d0dc74f9147 only supports all raid type, this commit adds linear type. >> >> With