[LU-16684] lctl device_list can return empty lines Created: 30/Mar/23  Updated: 22/Apr/23  Resolved: 22/Apr/23

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

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

this would looks like the following:

[root@tmp ~]# lctl dl
  0 UP osd-ldiskfs lustre-MDT0000-osd lustre-MDT0000-osd_UUID 8
  1 UP mgs MGS MGS 4
  2 UP mgc MGC192.168.124.114@tcp 2dfbc162-b641-44a0-bfe5-a37d69afd6bd 4
  3 UP mds MDS MDS_uuid 2
  4 UP lod lustre-MDT0000-mdtlov lustre-MDT0000-mdtlov_UUID 3
...
 15 UP mdc lustre-MDT0000-mdc-ffffa3980e797000 c927a465-8ca1-4c82-8725-4107f90d7c98 4

 17 UP osp lustre-OST0000-osc-MDT0000 lustre-MDT0000-mdtlov_UUID 4

notice skipped line 16.
this in turn leads to different testing issues when a test can't find specific device.



 Comments   
Comment by Gerrit Updater [ 30/Mar/23 ]

"Alex Zhuravlev <bzzz@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50475
Subject: LU-16684 utils: reset buf_len in print_out_devices()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5605eb56e1eb74b908471dcdf2477dfac8d0a13e

Comment by Gerrit Updater [ 22/Apr/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50475/
Subject: LU-16684 utils: reset buf_len in print_out_devices()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 87f2733d536c1858bf5661f0eccf819acd064345

Comment by Peter Jones [ 22/Apr/23 ]

Landed for 2.16

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