Whamcloud - gitweb
LU-12726 mdt: Fix usage of sscanf 52/36052/7
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 11 Oct 2019 01:36:13 +0000 (21:36 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 12 Nov 2019 04:06:24 +0000 (04:06 +0000)
commit8a0a6dbec5537764958d4863e76de249fdd675a4
tree03555e0e1aa1f77b4c3c338218344325b00b13ad
parent3643e27f7a97dac195a102db4cf7f895e019159c
LU-12726 mdt: Fix usage of sscanf

sscanf is returning the number of items matched in the
input, but we need to return the amount of data
successfully written.

Fixes: a408e9dd426f ("LU-8066 mdt: migrate procfs files to sysfs")

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ib90bd260e745692d11656d0b74820573aaa35550
Reviewed-on: https://review.whamcloud.com/36052
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lproc.c