Whamcloud - gitweb
LU-2875 mdt: use lu_name for rr_name and rr_tgt 61/7961/4
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 16 Oct 2013 14:15:56 +0000 (09:15 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 28 Dec 2013 02:29:18 +0000 (02:29 +0000)
commit78e16f885cd76bfe8e2ed3d2a15995959eee7a6f
tree068334fb8e2067f0b6bb09d8fbca673f768aca16
parent9db3b77445d8b96f1f4a20ab03a6b8df3aec01e4
LU-2875 mdt: use lu_name for rr_name and rr_tgt

In mdt_reint_record, use a struct lu_name for rr_name and
rr_tgt. Rename the rename target name rr_tgt to rr_tgt_name. Add a
function lu_name_is_valid() to check the validity of names. Remove
various assertions on the validity of names in MDT requests and
replace them with calls to mdt_reint_record() and returns of -EPROTO
on failure.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I6e0e207522a72eb8cec5d7918795c4aed5b9c4c2
Reviewed-on: http://review.whamcloud.com/7961
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lu_object.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_xattr.c