Whamcloud - gitweb
LU-10482 flr: enhance "lfs find" to add mirror options 69/31069/6
authorJian Yu <jian.yu@intel.com>
Thu, 8 Feb 2018 06:45:02 +0000 (22:45 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Feb 2018 00:52:47 +0000 (00:52 +0000)
commit8cb239805699e925dae594bc82379f0caa43b491
tree7d3ed744f5de904edac298ba92f4bd50a6a27530
parenta13e325130d60b2bec46f67517fa46892e368337
LU-10482 flr: enhance "lfs find" to add mirror options

This patch adds the following mirror related search
options to "lfs find" command:

[[!] --mirror-count|-N [+-]n]
[[!] --mirror-state <[^]state>]

--mirror-count|-N indicates mirror count.
--mirror-state indicates mirrored file state.

A mirrored file can be one of the following states:
ro indicates the mirrored file is in read-only state.
   All of the mirrors contain the up-to-date data.
wp indicates the mirrored file is being written.
sp indicates the mirrored file is being resynchronized.

Change-Id: I3c8f5c8bb6518ba4bd73fc2f164dd52afdfac211
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/31069
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/lfs-find.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c