Whamcloud - gitweb
LU-8913 nodemap: fix nodemap range format '*@<net>' support 50/31950/5
authorEmoly Liu <emoly.liu@intel.com>
Mon, 19 Mar 2018 12:42:06 +0000 (20:42 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 16 Apr 2018 19:00:42 +0000 (19:00 +0000)
commit9721fa40d09b0686a568c8a3ad78bf6502f5acb2
tree0f1030855621d94b9a5f028befa3cf72dcaa38ff
parent32c46a061fcd7d8ebc80253ffe62c552e5679cf4
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 minimum MGS version to 2.10.1

Lustre-change: https://review.whamcloud.com/31684
Lustre-commit: 230266326f49b0e6aab43c1d1a5c926d78c11e53

Change-Id: I72c546b060f9e123204a566a3bd373b4f017502d
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31950
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
libcfs/libcfs/util/nidstrings.c
lnet/lnet/nidstrings.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c