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: eac95a65 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>
Showing
- libcfs/libcfs/util/nidstrings.c 145 additions, 219 deletionslibcfs/libcfs/util/nidstrings.c
- lnet/include/lnet/nidstr.h 2 additions, 4 deletionslnet/include/lnet/nidstr.h
- lnet/lnet/nidstrings.c 123 additions, 197 deletionslnet/lnet/nidstrings.c
- lustre/ptlrpc/nodemap_lproc.c 4 additions, 4 deletionslustre/ptlrpc/nodemap_lproc.c
- lustre/tests/sanity-sec.sh 30 additions, 0 deletionslustre/tests/sanity-sec.sh
- lustre/utils/obd.c 26 additions, 12 deletionslustre/utils/obd.c
Loading
Please register or sign in to comment