[LU-14050] ofd_access_log_reader off by one error in alr_sort_and_print_thread() Created: 20/Oct/20  Updated: 07/Nov/20  Resolved: 07/Nov/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Cloners
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

There's a bug somewhere in alr_sort_and_print_thread(). If only one file is being accessed then it won't be printed by ofd_access_log_reader. I think there is an off by one error around cut/i that causes us to print one fewer files than we should.



 Comments   
Comment by John Hammond [ 20/Oct/20 ]

https://review.whamcloud.com/39934

LU-14050 utils: fix fraction output logic

so that it doesn't suppress single line reports

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I9e374f8e769afcadc5cecbf529fa403deb544544

Comment by Gerrit Updater [ 07/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39934/
Subject: LU-14050 utils: fix fraction output logic
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9e24894e4ada4d381a5af6607c01fd378400707f

Comment by Peter Jones [ 07/Nov/20 ]

Landed for 2.14

Generated at Sat Feb 10 03:06:25 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.