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)
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>

No differences found