Whamcloud - gitweb
LU-7334 lprocfs: Allow a new line before null terminator 53/20353/4
authorGiuseppe Di Natale <dinatale2@llnl.gov>
Fri, 20 May 2016 15:01:35 +0000 (08:01 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:55:01 +0000 (03:55 +0000)
commitdb44a9e35a9c115d69bca82014ceec4c5fc336dd
tree57950af89b9a1c44267ea7028997273c1da9f1a3
parentb631a91e7e70ff609268def24e51b5bb089a5545
LU-7334 lprocfs: Allow a new line before null terminator

Kernel string parsing functions support a single new line
before the null terminator of a string. Our numeric string
parsing should do the same. This allows strings to be
echo'ed directly into proc files.

Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Change-Id: Ia9d36b4f4f6849547391115d31be34a14215fc2a
Reviewed-on: http://review.whamcloud.com/20353
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Frank Zago <fzago@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/obdclass/lprocfs_status.c