Whamcloud - gitweb
LU-14597 flr: allow multiple primary mirrors 47/43247/3
authorBobi Jam <bobijam@whamcloud.com>
Fri, 9 Apr 2021 04:53:07 +0000 (12:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Apr 2021 03:15:32 +0000 (03:15 +0000)
commit93258b9d93611e75b79c30f3ddfc2c9c21f25917
treedab573652bda639f6bb0317bfa9bb2f40b4f0211
parent83ddd179225821e5c2aee1adb72dab26150ab385
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.

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