Whamcloud - gitweb
LU-12455 osd: Correct readcache_max_filesize proc 66/35266/5
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 21 Jun 2019 16:44:14 +0000 (12:44 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Aug 2019 02:21:34 +0000 (02:21 +0000)
commit7aee262d513d607c0051f000a0c13e864408abfc
treeb2061b16639ee10279cdf7d5f971ebe440a69e26
parentbb0a1075285076567bf9c3c406116682f0997579
LU-12455 osd: Correct readcache_max_filesize proc

Readcache max file size is displayed as unsigned, but
parsed as signed.  This causes confusion when users try to
set it back to the default, which is 2^64-1 (or -1), and
they can't use 2^64-1.

Easy enough to add an unsigned parser and use it instead.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I15f5677c61f4f12a8448a665c5d52a8c94d062f3
Reviewed-on: https://review.whamcloud.com/35266
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ann Koehler <amk@cray.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/obdclass/lprocfs_status.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_lproc.c