[LU-9085] Fix "Using a hash as a reference is deprecated" in llstat Created: 08/Feb/17  Updated: 26/Mar/17  Resolved: 26/Mar/17

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

Type: Bug Priority: Minor
Reporter: Emoly Liu Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

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

 Description   

The customer reported the following issue in SFW-18:

[root@mt2-oss2 ~]# llstat -i 5 home-OST0001
Using a hash as a reference is deprecated at /usr/bin/llstat line 58.
Using a hash as a reference is deprecated at /usr/bin/llstat line 85.
Using a hash as a reference is deprecated at /usr/bin/llstat line 121.
Using a hash as a reference is deprecated at /usr/bin/llstat line 122.
/usr/bin/llstat: STATS on 02/01/17 /proc/fs/lustre/obdfilter/home-OST0001/stats on 10.55.150.13@o2ib
snapshot_time 1485997519.917824
read_bytes 78435913
write_bytes 81111225
setattr 71805
punch 64
sync 195530
destroy 272792
create 2295
statfs 285218
get_info 4
quotactl 16
set_info_async 1
connect 220
disconnect 133
Illegal division by zero at /usr/bin/llstat line 80, <STATS> line 15.

I will create a patch to fix that.



 Comments   
Comment by Gerrit Updater [ 08/Feb/17 ]

Emoly Liu (emoly.liu@intel.com) uploaded a new patch: https://review.whamcloud.com/25320
Subject: LU-9085 llstat: don't use a hash as a reference
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ad615073507dbacc758bd90d2c6ac73e16bb6c7d

Comment by Gerrit Updater [ 26/Mar/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25320/
Subject: LU-9085 llstat: don't use a hash as a reference
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 12cf5f937c64f5b751d1890511e23a1903718d3d

Comment by Peter Jones [ 26/Mar/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:23:07 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.