Whamcloud - gitweb
LU-8912 nodemap: fix contiguous range support 97/24397/4
authorKit Westneat <kit.westneat@gmail.com>
Thu, 15 Dec 2016 23:45:00 +0000 (07:45 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Mar 2018 04:29:12 +0000 (04:29 +0000)
commiteac95a6587af4061b36b35051e191ca27bc6b1a3
tree6e57f6a80d9b49e58613984c0def225d85372570
parent5446b9b6246c9721394ab3aefb94779c899927de
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.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I3c49a077039327fcbde87196f82db140f67a74d0
Reviewed-on: https://review.whamcloud.com/24397
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/util/nidstrings.c
lnet/include/uapi/linux/lnet/nidstr.h
lnet/lnet/nidstrings.c
lustre/ptlrpc/nodemap_lproc.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c