Whamcloud - gitweb
LU-16684 utils: reset buf_len in print_out_devices() 75/50475/6
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 30 Mar 2023 10:10:23 +0000 (13:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 22 Apr 2023 17:30:41 +0000 (17:30 +0000)
commit87f2733d536c1858bf5661f0eccf819acd064345
tree8c06c08f2d8176c0b4ff9a195395a4504dc1a2e1
parentd5036b55b8c137aa6752e7cf585ce6a6a7c9e181
LU-16684 utils: reset buf_len in print_out_devices()

so that print_out_devices() doesn't hit false buffer overflow
leading to missing devices in lctl device_list output.

Fixes: ba0d5ffc1c ("LU-9680 utils: new llapi_param_display_value().")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ia0ebbd0150651d7c631348201c26ea8b3d1ff704
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50475
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/liblustreapi_param.c