Whamcloud - gitweb
LU-11485 lod: disallow setting the last non-stale mirror as stale 41/36141/5
authorJian Yu <yujian@whamcloud.com>
Mon, 16 Sep 2019 05:56:33 +0000 (22:56 -0700)
committerJian Yu <yujian@whamcloud.com>
Mon, 16 Sep 2019 05:56:33 +0000 (22:56 -0700)
commit29be32a759f696006a539d3cff74ca55a281aa64
tree4128d1e34b6c479a7362c9a331348c709e1d6eec
parent219c5190a3ad316970cdca6392d29fc4a2d45634
LU-11485 lod: disallow setting the last non-stale mirror as stale

"lfs setstripe" allows setting stale flag on the last
non-stale mirror of a file, which makes the file have
no valid component to read and return IO error.

This patch fixes the above issue by disallowing that.
It also disallows "lfs mirror split" to destroy the
last non-stale mirror of a file.

Change-Id: I6934cfe0190cd1ea83de1cf28ddf840b9f96193a
Signed-off-by: Jian Yu <yujian@whamcloud.com>
lustre/doc/lfs-mirror-split.1
lustre/doc/lfs-setstripe.1
lustre/lod/lod_object.c
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c