[LU-6025] lctl nodemap commands stop working in interactive mode Created: 13/Dec/14  Updated: 22/Dec/15  Resolved: 19/Jan/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0, Lustre 2.5.5

Type: Bug Priority: Critical
Reporter: Kit Westneat Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: HB, patch

Issue Links:
Related
is related to LU-4377 Segmentation fault seen in LNet Self ... Resolved
is related to LU-6267 lctl in interactive mode repeated use... Resolved
Severity: 3
Rank (Obsolete): 16797

 Description   

The nodemap commands that use --long options stop working in interactive mode because optind is not being reset between calls to getopt_long(). I'm uploading a patch that correctly resets optind.



 Comments   
Comment by Gerrit Updater [ 13/Dec/14 ]

Kit Westneat (kit.westneat@gmail.com) uploaded a new patch: http://review.whamcloud.com/13063
Subject: LU-6025 lctl: reset optind before calls to getopt_long()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5199446a17b3d566ce2ac564627d3e382f65de5b

Comment by Jodi Levi (Inactive) [ 15/Dec/14 ]

Nathaniel,
can you keep an eye on this patch?
Thank you!

Comment by Gerrit Updater [ 26/Dec/14 ]

Kit Westneat (kit.westneat@gmail.com) uploaded a new patch: http://review.whamcloud.com/13191
Subject: LU-6025 lctl: remove bad error checking from nodemap_cmd()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d1f2b485f8a27f387f761b83e8f830631535aaad

Comment by Kit Westneat [ 26/Dec/14 ]

IU found another bug in lctl interactive mode, added a new patch http://review.whamcloud.com/13191

Comment by Gerrit Updater [ 29/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13063/
Subject: LU-6025 utils: reset optind before calls to getopt_long()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 81b3399d79d6e8bbe64d3fb68c27209274b4cf9c

Comment by Gerrit Updater [ 19/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13191/
Subject: LU-6025 lctl: remove bad error checking from nodemap_cmd()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 61785255612f05b121f386fdb19f79d2821ed844

Comment by Gerrit Updater [ 26/Feb/15 ]

Jian Yu (jian.yu@intel.com) uploaded a new patch: http://review.whamcloud.com/13893
Subject: LU-6025 utils: reset optind before calls to getopt_long()
Project: fs/lustre-release
Branch: b2_5
Current Patch Set: 1
Commit: 29dfa5009e3927f831c6387e511a54d6fbb6a429

Generated at Sat Feb 10 01:56:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.