[LU-7299] allow mkfs.lustre --index to be specified in hex Created: 14/Oct/15 Updated: 13/Feb/16 Resolved: 28/Oct/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | WC Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | easy, patch | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
The mkfs.lustre --index argument should be able to handle hex index values as well as decimal values, especially since the OSTxxxx identifiers are printed in hexadecimal as well. The current code uses atol() currently, but should be changed to strtoul(,,0) so that it can also accept index values of the form 0xnnnn and handle better error checking. |
| Comments |
| Comment by Andreas Dilger [ 14/Oct/15 ] |
|
This change should also be documented in the mkfs.lustre(8) man page. |
| Comment by Gerrit Updater [ 15/Oct/15 ] |
|
Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: http://review.whamcloud.com/16831 |
| Comment by Andreas Dilger [ 15/Oct/15 ] |
|
Thomas, thanks for the patch. |
| Comment by Gerrit Updater [ 28/Oct/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16831/ |
| Comment by Joseph Gmitter (Inactive) [ 28/Oct/15 ] |
|
Landed for 2.8 |