Whamcloud - gitweb
LU-16218 utils: add component flags "prefrd" and "prefwr"
authorJian Yu <yujian@whamcloud.com>
Wed, 27 Sep 2023 07:02:15 +0000 (00:02 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 28 Sep 2023 08:43:26 +0000 (08:43 +0000)
commitf82daa2336c9453a2cd347a4529bc7291357c018
treed71aae15554337052d1bb4fce42ad3f2b356b862
parent55d26e61eece21845b8177ee9e0bd4a9734944f7
LU-16218 utils: add component flags "prefrd" and "prefwr"

The initial implementation of "lfs setstripe ... --comp-flags=prefer"
only allowed specifying a single "prefer" argument for a given
mirror component, which would set both the "LCME_FL_PREF_RD" and
"LCME_FL_PREF_WR" flags at the same time.

This patch adds the separated component flags "prefrd" and "prefwr"
to allow setting the individual flags on a component.

Lustre-change: https://review.whamcloud.com/52508
Lustre-commit: TBD (from a4cd76c790c46b4bf6d85e386b1054d4b925e095)

Test-Parameters: trivial testlist=sanity-flr

Change-Id: I3e413cb37fab7ab2834946536705ce61a3feeed4
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52525
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-find.1
lustre/doc/lfs-getstripe.1
lustre/doc/lfs-setstripe.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c