Whamcloud - gitweb
LU-8913 nodemap: fix nodemap range format '*@<net>' support 84/31684/2
authorEmoly Liu <emoly.liu@intel.com>
Mon, 19 Mar 2018 12:42:06 +0000 (20:42 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Apr 2018 19:51:03 +0000 (19:51 +0000)
commit230266326f49b0e6aab43c1d1a5c926d78c11e53
tree7e1066c034f7fd1b7f6306e99ddbbc4d0b4f59ee
parent2cdc1ad8b86d013fdb8ffc70ee567284537eee47
LU-8913 nodemap: fix nodemap range format '*@<net>' support

In cfs_ip_min_max(), (nidrange->nr_all == 1) means this nid range
is a full IP address range(*.*.*.*). In this case, we don't need
to compare it to any other nid range, but set min_nid to 0.0.0.0
and max_nid to 255.255.255.255 directly.

Also, test_10d is added to sanity-sec.sh to verify this patch and
some code cleanup is done for jt_nodemap_add/del_range().

Change-Id: I72c546b060f9e123204a566a3bd373b4f017502d
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-on: https://review.whamcloud.com/31684
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/util/nidstrings.c
lnet/lnet/nidstrings.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c