Whamcloud - gitweb
LU-6230 lfsck: reload OSP-object via set LOV EA on LOD-object 48/13848/2
authorFan Yong <fan.yong@intel.com>
Sun, 30 Nov 2014 00:22:10 +0000 (08:22 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 25 Feb 2015 18:39:21 +0000 (18:39 +0000)
commit7c82a9c81d03dec059132dddafd0bdde188b321d
tree0115d7656f3d334cfd0cb33985fce79e66e1818f
parentbcabadc92e1212b8397438e798ba7d47ee67f5fc
LU-6230 lfsck: reload OSP-object via set LOV EA on LOD-object

Generally, we should use bottom device (OSD) to update parent
LOV EA. But because the LOD-object still references the wrong
OSP-object that should be detached after the parent's LOV EA
refreshed. Unfortunately, there is no suitable API for that.
So we have to make the LOD to re-load the OSP-object(s) via
replacing the LOV EA against the LOD-object.

Once the DNE2 patches have been landed, we can replace the
LOD device with the OSD device.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I960f42dacc8ee23dd98a2b986f0a83cb53b62c15
Reviewed-on: http://review.whamcloud.com/13848
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_layout.c