Whamcloud - gitweb
LU-3716 obdecho: create a separate root object for echo access 30/10130/12
authorJian Yu <jian.yu@intel.com>
Sat, 17 Jan 2015 07:00:47 +0000 (23:00 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 23 Jan 2015 02:01:28 +0000 (02:01 +0000)
commit897580eb1562e0509bbe8ea72a273ed71f878eaa
treeb98959826b88c19ef53c75e57bd934b5a8ce4825
parent0860eda0544a507754b3af4aadcd651e1120ded5
LU-3716 obdecho: create a separate root object for echo access

Currently, while echo client and normal client are attached at the
same time, both md echo objects and normal objects are created
and looked up under the same root object (ROOT), which will cause
ASSERTION( lu_device_is_mdt(o->lo_dev) ) failure.

This patch fixes the issue by creating a separate root object
(ROOT_ECHO) for echo access. The md echo objects created under
this root object can only be accessed by echo client. Normal client
will never see these echo objects.

Test-Parameters: alwaysuploadlogs envdefinitions=SLOW=yes \
mdtcount=1 testlist=mds-survey

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I8d8a9bd2c467bb40a7993d492aa3d4ba6676ac8f
Reviewed-on: http://review.whamcloud.com/10130
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_fid.h
lustre/obdecho/echo_client.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_oi.c