Whamcloud - gitweb
LU-10282 flr: comp-flags support when creating mirrors 60/30360/13
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 4 Dec 2017 19:52:25 +0000 (11:52 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 Jan 2018 06:19:29 +0000 (06:19 +0000)
commitaa1646a8a1c2a91a1571147994229b6413ee7acc
tree76693b95a246d752e63cb9279d1381fcf28945a0
parentebba68f378f72107fa51a8002369d1acef7dbedd
LU-10282 flr: comp-flags support when creating mirrors

This patch will allow flags to be set when creating mirrors.
The flags are set to individual components therefore it would be
flexible to flags based on the location of components. Also, 'stale'
and 'prefer' flags are allowed to set to individual components later
on.

This patch also revises component flags matching rules to allow
flags and inverted flags to be set at the same time in the command
lfs-find(1) and lfs-getstripe(1).

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Ia077ca5454d49eb411bd82bd451c9dfc426d780c
Reviewed-on: https://review.whamcloud.com/30360
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
14 files changed:
lustre/doc/lfs-mirror-create.1
lustre/doc/lfs-setstripe.1
lustre/doc/lfs.1
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/lov/lov_object.c
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c