[LU-11834] config instance truncation due to buffer size mismatch Created: 02/Jan/19  Updated: 19/Mar/19  Resolved: 16/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0, Lustre 2.13.0
Fix Version/s: Lustre 2.13.0, Lustre 2.12.1

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11809 conf-sanity test 28A hangs on file sy... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

The formatting of the cfg_instance variable was changed in patch https://review.whamcloud.com/33900 "LU-11809 llite: don't use %p to generate cfg_instance" to always use a fixed "%016llu" format, but the temporary buffer allocations for the instance string were not changed to match the printed value.

This results in string truncation in some situations.



 Comments   
Comment by James A Simmons [ 02/Jan/19 ]

Just as a note if we do use kernel generated UUIDs they are  UUID_STRING_LEN : 36 in length.

Comment by Gerrit Updater [ 02/Jan/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33951
Subject: LU-11834 llite: fix temporary instance buffer size
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c3c275bcea3618f62afdf3cd3bda05d221bfed3b

Comment by Gerrit Updater [ 16/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33951/
Subject: LU-11834 llite: fix temporary instance buffer size
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1db90b29ad676c2cf1888ef5a7c623161ff23bf9

Comment by Peter Jones [ 16/Jan/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 25/Feb/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34315
Subject: LU-11834 llite: fix temporary instance buffer size
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 68a2361f5b69e39520e6dd390eda34f1d8334002

Comment by Gerrit Updater [ 19/Mar/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34315/
Subject: LU-11834 llite: fix temporary instance buffer size
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 8f887156d4662f80de99dc854f0d3941d0205107

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