Whamcloud - gitweb
LU-540 misc patch for user identity upcall/downcall
authornasf <yong.fan@whamcloud.com>
Tue, 2 Aug 2011 16:26:18 +0000 (00:26 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 9 Aug 2011 14:57:37 +0000 (10:57 -0400)
commit4b7cbec396fcd7afb81d601a2facb70ee8c7ad28
treed18dd79da72c1f4875681abd071c393f38d554ca
parent0c051fd0e737e03ac6cadb7699c93bcde959b4fd
LU-540 misc patch for user identity upcall/downcall

1) l_getidentity forgets to allocate supplementary group info space, but access
   such non-allocated memoey without checking.
2) In structure "identity_downcall_data", "idd_gid" is same as "idd_groups[0]",
   remove such redundant information.
3) More sanity check for lprocfs_wr_identity_info().
4) Drop unnecessary memory allocation to simplify mdt_identity_do_upcall().
5) Add padding field in "identity_downcall_data" to resolve align issues.
6) Use new magic to distinguish old version/format downcall.

Change-Id: Ib0dfb37c39a7cb335e29557b68b885afa726789e
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1160
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_user.h
lustre/mdt/mdt_identity.c
lustre/mdt/mdt_lproc.c
lustre/utils/l_getidentity.c