[LU-13153] Function llapi_get_version_string fails Created: 17/Jan/20  Updated: 26/Nov/20  Resolved: 26/Nov/20

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

Type: Bug Priority: Minor
Reporter: Clément Barthelemy (Inactive) Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None

Attachments: File patch_version.diff    
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The llapi function llapi_get_version_string always (AFAICT) fails with ENOENT because it passes the argument to get_lustre_param_value in the wrong order.
I should add that this function is used in jt_get_version that has a fallback to LUSTRE_VERSION_STRING which might have shadowed the error.

I'm attaching a simple patch.



 Comments   
Comment by Gerrit Updater [ 18/Nov/20 ]

Neil Brown (neilb@suse.de) uploaded a new patch: https://review.whamcloud.com/40680
Subject: LU-13153 lib: fix llapi_get_version_string
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7a8cd2c24b6e13cf8c289acfedc89a3fb23c952b

Comment by Gerrit Updater [ 26/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40680/
Subject: LU-13153 lib: fix llapi_get_version_string
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d634e66dc38f97b6697f5ec1d559f0c22aeb4c1d

Comment by Peter Jones [ 26/Nov/20 ]

Landed for 2.14

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