Whamcloud - gitweb
LU-4471 mdd: mdd_unlink: do trans_start after sanity check 27/8827/10
authorPatrick Farrell <paf@cray.com>
Wed, 22 Jan 2014 19:04:26 +0000 (13:04 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Mon, 10 Feb 2014 20:24:39 +0000 (20:24 +0000)
commit754a8ac8bf4b907bb579fe441eed1ba3447d3e0f
tree50d3a380723d80c857241b7a62f4c0c89aebbf6c
parent9e3436c298d65a5867920b0de0d3920972465407
LU-4471 mdd: mdd_unlink: do trans_start after sanity check

Currently, mdd_trans_start is called before
mdd_unlink_sanity_check. This means a remote directory
which has files in it can be removed on MDT0 before the
sanity check on MDT1 finds the files and errors, which
orphans the files on MDT1. This patch moves the sanity
check before mdd_trans_create and mdd_trans_start.

Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I08882b682b9f0016577214821efec4759ee5c184
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh