Whamcloud - gitweb
LU-14597 flr: allow multiple primary mirrors
authorBobi Jam <bobijam@whamcloud.com>
Fri, 9 Apr 2021 04:53:07 +0000 (12:53 +0800)
committerLi Xi <lixi@ddn.com>
Wed, 12 May 2021 15:46:58 +0000 (15:46 +0000)
commit40c4127850f1ba18ab116e34187c4a0244e8e956
tree3bdefbd6fb8a130d514d8e455c76abc08f85cca1
parent9b19bb7edbb5029e53e56c24bfbcb2b11deb1200
LU-14597 flr: allow multiple primary mirrors

Users can set "prefer" flag on any mirror/component, so the IO should
not report error if multiple mirrors are encountered.

Rename lod_mirror_entry::lme_primary to lme_prefer to avoid confusion.

Lustre-change: https://review.whamcloud.com/43247
Lustre-commit: 93258b9d93611e75b79c30f3ddfc2c9c21f25917

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I45748e56e38985a0d9028792ba3d976a4e03efb8
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43535
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/tests/sanity-flr.sh