Whamcloud - gitweb
LU-1778 libcfs: add a service that prints a nidlist 79/8479/6
authorGregoire Pichon <gregoire.pichon@bull.net>
Wed, 4 Dec 2013 13:57:10 +0000 (14:57 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 7 Feb 2014 13:57:32 +0000 (13:57 +0000)
commit874f67c06da8304a194df5fc0dd5a2c61937076c
tree78aa26e0f4a7825d6e3314d3a20b8e80d7126995
parentb6a1b9470e7acccd731d97b7c9409a9f61befb0c
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: I5dbc405e02b8f0f90d45e1a7e44589d5972cc384
Reviewed-on: http://review.whamcloud.com/8479
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@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