Whamcloud - gitweb
LU-1778 libcfs: add a service that prints a nidlist 21/9221/2
authorGregoire Pichon <gregoire.pichon@bull.net>
Tue, 11 Feb 2014 09:40:54 +0000 (10:40 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Feb 2014 19:25:59 +0000 (19:25 +0000)
commit917b0a17d4e50db9f966763925a2dc860d932a3b
treed30ac29a8fb5dac5de105002c543ca952bfd6867
parentc92afbcd4a8234994affa444d59645b80fa19ec5
LU-1778 libcfs: add a service that prints a nidlist

The libcfs already provides services to parse a string into a nidlist
and to match a nid into a nidlist. This patch implements a service
that prints a nidlist into a buffer.

This is required for instance to print the nosquash_nids parameter
of the MDT procfs component.

Additionally, this patch fixes a bug in return code of
parse_addrange() routine, so that parsing of nids including
a * character works fine ('*@elan' for instance).

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: I518845b03b34ab5a1e2cbc673c58c5a384702930
Reviewed-on: http://review.whamcloud.com/9221
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_private.h
libcfs/include/libcfs/libcfs_string.h
libcfs/libcfs/libcfs_string.c
libcfs/libcfs/nidstrings.c