Whamcloud - gitweb
LU-1778 libcfs: add a service that prints a nidlist 43/10743/4
authorGregoire Pichon <gregoire.pichon@bull.net>
Tue, 17 Jun 2014 14:10:40 +0000 (16:10 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 Dec 2014 04:15:55 +0000 (04:15 +0000)
commit57a8a6bec4dc965388b5bba48e7501f79bdab44b
tree31c356d0804ddf0a4999f5907334e54a6d2a5a61
parent4e8def3e32ad76808a5b8336d43430a5318e20aa
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).

Lustre-change: http://review.whamcloud.com/9221
Lustre-commit: 917b0a17d4e50db9f966763925a2dc860d932a3b

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: Ifd5a9c224d43c815104eb170c5b854a1951ab47a
Reviewed-on: http://review.whamcloud.com/10743
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
libcfs/include/libcfs/libcfs_private.h
libcfs/include/libcfs/libcfs_string.h
libcfs/libcfs/libcfs_string.c
libcfs/libcfs/nidstrings.c