Whamcloud - gitweb
LU-16218 utils: add component flags "prefrd" and "prefwr" 08/52508/3
authorJian Yu <yujian@whamcloud.com>
Tue, 26 Sep 2023 19:45:07 +0000 (12:45 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Oct 2023 05:49:33 +0000 (05:49 +0000)
commit6f5870dd87e51f7671c83c0b3c6181967cf22e0b
tree159dc97011cddfec7ad142bb45813b7c58e66b57
parentb156790dea16b3c494f5130666a9293fa179fe99
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.

Test-Parameters: trivial testlist=sanity-flr

Change-Id: I3e413cb37fab7ab2834946536705ce61a3feeed4
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52508
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@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