Whamcloud - gitweb
LU-1403 ucred: ucred cleanup
authorVitaly Fertman <vitaly_fertman@xyratex.com>
Sun, 9 Dec 2012 21:26:51 +0000 (01:26 +0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Dec 2012 17:38:29 +0000 (12:38 -0500)
commit60a9fd37185edf57fc42bf6a5ad9b9c61fc10e14
treece281a3601b8878d92da7f2a8cc63a642a1b113f
parent9219ce0081c665ec42a83ee10fb44cf1ace5e932
LU-1403 ucred: ucred cleanup

Add ucred_check() and ucred_assert() methods to ensure ucred is
installed and/or initialised everywhere.

As echo client may be sitting on mdd it needs to initialize md_ucred
too. As echo client may be sitting on osc without mdd module loaded,
make md_ucred a common key, move it to lu_object.

Reviewed-by: Alexander Zarochentsev <Alexander_Zarochentsev@xyratex.com>
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Xyratex-bug-id: MRP-484
Change-Id: I9c4aaa31148ff10e4a609393a0cf018cdf731d9c
Reviewed-on: http://review.whamcloud.com/2733
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
21 files changed:
lustre/include/lu_object.h
lustre/include/lustre_eacl.h
lustre/include/lustre_idmap.h
lustre/include/md_object.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lov.c
lustre/mdd/mdd_object.c
lustre/mdd/mdd_permission.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_identity.c
lustre/mdt/mdt_idmap.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_xattr.c
lustre/obdclass/acl.c
lustre/obdclass/idmap.c
lustre/obdclass/lu_object.c
lustre/obdecho/echo_client.c