Whamcloud - gitweb
LU-2995 osd: Delete the ref of remote parent in del ..
authorwangdi <di.wang@whamcloud.com>
Mon, 6 Jan 2014 01:44:54 +0000 (17:44 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 28 Mar 2013 21:34:27 +0000 (17:34 -0400)
commit809d6a120a238ec64830ab16969728c8433dbeba
treef0de754e5fd0ac72e5c7f704d493a03c114e6578
parentec009a582944d5992295d8572f86710d3305c2c6
LU-2995 osd: Delete the ref of remote parent in del ..

Try to delete remote dir from REMOTE PARENT during delete ..,
because the object might not be destroyed if it is being
opened by someone else, instead it will be inserted to the
ORPHAN dir, so if it does not delete the {.., REMOTE_PARENT},
it will be two parents for this remote dir.

Add remote object FID into op_data->op_fid3, so the stale check
will not fail during remote open.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I6bbac9174869ae02f385ac52740bb2046f0f1bab
Reviewed-on: http://review.whamcloud.com/5791
Tested-by: Hudson
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_update.h
lustre/lmv/lmv_intent.c
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c