Whamcloud - gitweb
LU-2912 mdd: move fid2path from MDD to MDT
authorwangdi <di.wang@whamcloud.com>
Sun, 22 Dec 2013 04:07:23 +0000 (20:07 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Mar 2013 18:43:10 +0000 (14:43 -0400)
commit7e915f5d7177b22bd3cc800137fb505781a2c037
tree16769a6eb7a075768fc47b0fd435d9e597423aa2
parent0c00b4a10c951a7a5cba075a3e8181662dab50b8
LU-2912 mdd: move fid2path from MDD to MDT

1. Move some linkEA API to obdclass, so both MDD(set linkea)
and MDT(fid2path) can access these LINKEA operation.

2. Move fid2path from MDD to MDT, so it can detect remote
object, and return -EREMOTE to the client. Then the client
will try fid2path on another MDT, and finally the client
will assemble the path fragments from different MDT.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I464cd1fdd44ebbe02c94821f910294829f3d9b94
Reviewed-on: http://review.whamcloud.com/5676
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
21 files changed:
lustre/include/Makefile.am
lustre/include/lu_object.h
lustre/include/lustre_linkea.h [new file with mode: 0644]
lustre/include/md_object.h
lustre/include/obd.h
lustre/llite/file.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_compat.c
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lfsck.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/obdclass/Makefile.in
lustre/obdclass/linkea.c [new file with mode: 0644]
lustre/obdclass/lu_object.c
lustre/osp/osp_md_object.c
lustre/tests/sanity.sh