Whamcloud - gitweb
LU-2858 mdt: check .lustre before reint operation.
authorwangdi <di.wang@whamcloud.com>
Sat, 14 Dec 2013 07:41:11 +0000 (23:41 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 9 Mar 2013 01:08:35 +0000 (20:08 -0500)
commita933a4ceaa4bdf6fd458571d053ccb0794e31928
tree0e647b35772e4bd7a3aad1f237276df5152bc6e0
parent2f1703f595f40887d798119dcee0aa3163c5f3f3
LU-2858 mdt: check .lustre before reint operation.

1. Check .lustre in MDT layer to make sure any attempt to change
.lustre will return EPERMT.

2. send parent fid for remote open, so mdt can check whether it
will create lov object for the fid under OBF.

3. add a few test cases in sanity 154(OBF checking) to check .lustre
and remote fid

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ia708856e026a959ca30b06fdd3acd907e5d1b913
Reviewed-on: http://review.whamcloud.com/5555
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John Hammond <johnlockwoodhammond@gmail.com>
lustre/include/lustre_fid.h
lustre/lmv/lmv_intent.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh