Whamcloud - gitweb
LU-10561 flr: remove "--parent" option from lfs mirror command 98/31298/5
authorJian Yu <jian.yu@intel.com>
Tue, 20 Feb 2018 22:35:52 +0000 (14:35 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 Feb 2018 03:43:39 +0000 (03:43 +0000)
commit905d37787638b94d02e58798f47677230253274a
tree8936fba989769553ddfb6b432bee520f402e931b
parent9e488fe9413184e61dcf405c9c87ca348dd6824a
LU-10561 flr: remove "--parent" option from lfs mirror command

"--parent" option for "lfs mirror create/extend" command was
originally designed to use default stripe options inherited
from parent directory. However, if parent directory has
composite layout, there will be inconsistency to choose the
stripe options from which component to inherit. And if there
is any other option specified, it's also inconsistent to
inherit the layout of parent directory.

So, this patch removes "--parent" option to eliminate ambiguity.
For "--pool|-p" option, this patch supports specifying "none" to
clear the pool name and inherit from parent directory.

Unspecified stripe count, stripe size and OST pool name will
inherit from previous component. If there is no previous component,
then unspecified stripe count and stripe size attributes will
inherit from filesystem-wide default values. Unspecified or
cleared OST pool name will inherit from parent directory.

Change-Id: Ib0ec3cbc65fb307c42881f35dc676090ab8319ff
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/31298
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/lfs-mirror-create.1
lustre/doc/lfs-mirror-extend.1
lustre/doc/lfs-setstripe.1
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c
lustre/utils/obd.c