Whamcloud - gitweb
LU-10286 mdt: deny 2.10 clients to open mirrored files 57/30957/6
authorJinshan Xiong <jinshan.xiong@intel.com>
Sun, 21 Jan 2018 01:58:01 +0000 (01:58 +0000)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 9 Feb 2018 05:58:51 +0000 (05:58 +0000)
commit21e39775a0f4f8d7819a49c37b59379a1181f52a
tree99e9963577f5c761564b5c1f82b8df31410598cd
parentb8e87b5a1c17048a760ce9809fde904ca6dc449d
LU-10286 mdt: deny 2.10 clients to open mirrored files

2.10 clients would manipulate mirrored layout as PFL layout, which
would damage mirrored files.

This patch only allows mirrored files to be opened by clients who
understand mirror layout.

It also fixes the problem that it should check OBD_CONNECT_FLAGS2
first before checking OBD_CONNECT2_XXX flags.

Test-Parameters: envdefinitions=SLOW=yes clientjob=lustre-b2_10 clientbuildno=68 testlist=runtests,sanity
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I3431211ad30a1edd07f0f583d573328d6308779d
Reviewed-on: https://review.whamcloud.com/30957
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/lustre_export.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/llite_lib.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c