Whamcloud - gitweb
LU-3527 nodemap: idmap management functions 25/8125/10
authorJoshua Walgenbach <jjw@iu.edu>
Tue, 11 Feb 2014 00:36:53 +0000 (01:36 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Feb 2014 23:13:17 +0000 (23:13 +0000)
commit294b0efc31ae733c821fb76670238c51ca30d7f7
tree6abe73d1046aaa4454fce0672d4f158a812f7371
parent4642f30970c8737f31d63c75eeda2cff15c68a77
LU-3527 nodemap: idmap management functions

This adds support for uid/gid mapping management to the nodemap
module. This mapping is added as four rbtrees in the nodemap
structure for forward and reverse mapping of UIDs and GIDs.
Postorder traversal for rbtrees have been added for cleanup
upon nodemap removal.

lctl commands have been added for adding, removing, and testing
maps.

Unit tests have been added to test the maps in all the relevant
modes (allow root access, trust client ids).

Signed-off-by: Joshua Walgenbach <jjw@iu.edu>
Change-Id: I9a8672f2883185a35d3553e5c2e91ae1d2cb094d
Reviewed-on: http://review.whamcloud.com/8125
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Ken Hornstein <kenh@cmf.nrl.navy.mil>
15 files changed:
lustre/include/lustre_cfg.h
lustre/include/lustre_nodemap.h
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_llog.c
lustre/nodemap/Makefile.in
lustre/nodemap/nodemap_handler.c
lustre/nodemap/nodemap_idmap.c [new file with mode: 0644]
lustre/nodemap/nodemap_internal.h
lustre/nodemap/nodemap_lproc.c
lustre/nodemap/nodemap_rbtree.c [new file with mode: 0644]
lustre/tests/sanity-sec.sh
lustre/utils/lctl.c
lustre/utils/liblustreapi_nodemap.c
lustre/utils/obd.c
lustre/utils/obdctl.h