Whamcloud - gitweb
LU-9835 utils: Properly maintain remaining buffer length in jt_opt_threads 63/28363/4
authorOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 10:29:23 +0000 (06:29 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:21:34 +0000 (00:21 +0000)
commitbac36f90818d70c211a40bbae6849abb044319c7
tree9b02e0b0022cbf074b5a683c554b072e12183975
parentb0656051531f5e07f4d8e9b6cc51b93ca03cde39
LU-9835 utils: Properly maintain remaining buffer length in jt_opt_threads

When we write to a buffer, we do need to reduce the size of it,
not just move the starting pointer.

Test-Parameters: trivial
Change-Id: I688e31d5434fb3040985b65a092d56ca30b69941
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/28363
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/obd.c