Whamcloud - gitweb
LU-8912 nodemap: fix contiguous range support 21/31521/2
authorKit Westneat <kit.westneat@gmail.com>
Thu, 15 Dec 2016 23:45:00 +0000 (07:45 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 5 Apr 2018 20:29:03 +0000 (20:29 +0000)
commit92d562457b947f02891e7c76b265bde4f9ed23c2
treee5e614fc9055f5d2f2cff8953d0991e55f528d15
parentcfe31e7b2dc68bad1175d313c05e1aaa4d519c86
LU-8912 nodemap: fix contiguous range support

This patch fixes the contiguous range check to allow the addition of
multiple "full" ([0-255]) ranges. As part of this change,
is_contiguous and find_min_max are combined as they were always
called together and the logic is fairly similar. This also removes
the multiple range expression support, since it was broken.

Also, sanity-sec.sh test_10c is added to verify this patch.

Lustre-change: https://review.whamcloud.com/24397
Lustre-commit: eac95a6587af4061b36b35051e191ca27bc6b1a3

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I3c49a077039327fcbde87196f82db140f67a74d0
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31521
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/include/lnet/nidstr.h
lnet/lnet/nidstrings.c
lustre/ptlrpc/nodemap_lproc.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c