Whamcloud - gitweb
LU-6070 libcfs: provide separate buffers for libcfs_*2str() 85/13185/6
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 25 Dec 2014 12:12:02 +0000 (15:12 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Mar 2015 16:54:55 +0000 (16:54 +0000)
commit907a321c9b9e2cd5f5ccf488cc516ba05dee0ad8
tree14017b287320e4e7a4123ce5b9d6d279ec4120fa
parentb2b005a51c88f01ab22525eb0f0845cde389b36a
LU-6070 libcfs: provide separate buffers for libcfs_*2str()

Provide duplicates with separate buffers for libcfs_*2str() functions.

Replace libcfs_nid2str() with libcfs_nid2str_r() function in critical
places.

Provide buffer size for nf_addr2str functions.

Use __u32 as nf_type always

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I7505271954745d1b1e288ef4e09a7f52bd970536
Reviewed-on: http://review.whamcloud.com/13185
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
16 files changed:
libcfs/libcfs/nidstrings.c
lnet/include/lnet/lib-types.h
lnet/include/lnet/nidstr.h
lnet/lnet/api-ni.c
lnet/lnet/router.c
lustre/mgs/lproc_mgs.c
lustre/mgs/mgs_llog.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lprocfs_status_server.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/osc/osc_request.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/nodemap_lproc.c
lustre/ptlrpc/sec_config.c
lustre/target/tgt_handler.c