From: Wen Xiong <[email protected]> To show all slots of a drawer for concurrent maintenance, we need to get the "dev" based on each slot id of the drawer. Skip the dev if dev is an array or volume set when iterating the devs.
Signed-off-by: Wen Xiong <[email protected]> --- iprconfig.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/iprconfig.c b/iprconfig.c index 227e355..52c7308 100644 --- a/iprconfig.c +++ b/iprconfig.c @@ -8025,6 +8025,9 @@ static struct ipr_dev *get_dev_for_slot_64bit(struct ipr_dev *ses, int slot, cha if (ses_path_len != res_path_len) continue; + if (ipr_is_volume_set(dev) || ipr_is_array(dev)) + continue; + for_each_rp(rp, dev) { if ( !memcmp(&rp->res_path_bytes, &ses->res_path[0], ses_path_len/3) && slot == dev_slot ) { -- 1.7.1 ------------------------------------------------------------------------------ _______________________________________________ Iprdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iprdd-devel
