Whamcloud - gitweb
LU-4992 llite: validate names 98/10198/4
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 2 May 2014 15:18:39 +0000 (10:18 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 9 May 2014 06:20:06 +0000 (06:20 +0000)
commit3589a793fb0c0394881f64bb303cc43bce6aa32a
tree274c91c6191bc458dab61f2b59e049e94d2ef431
parent3edfe6f6a322df4de44332c45f9eb95ac7db1e51
LU-4992 llite: validate names

In ll_prep_md_op_data() validate names according to the same formula
used in mdd_name_check(). Add mdc_pack_name() to validate the name
actually packed in the request.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib56951ab7be7196c79b94dc1848757b4bdf30ce6
Reviewed-on: http://review.whamcloud.com/10198
Tested-by: Jenkins
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
libcfs/include/libcfs/libcfs_private.h
lustre/include/lu_object.h
lustre/llite/llite_lib.c
lustre/mdc/mdc_lib.c