[LU-3867] filename_is_volatile() uses strtoul(..., ..., 0) to parse MDT index Created: 30/Aug/13 Updated: 08/Jan/14 Resolved: 02/Dec/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | John Hammond | Assignee: | James Nunez (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | dne | ||
| Severity: | 3 |
| Rank (Obsolete): | 10033 |
| Description |
|
If llapi_create_volatile_idx() is passed an MDT index other than -1 then it uses '%.4X' to encode the index into the volatile file name. But it uses an index of 0 rather than the one provided. filename_is_volatile() uses strtoul(..., ..., 0) to parse the MDT index out of the volatile file name. So llapi_create_volatile_idx() ignores MDT index when specified and filename_is_volatile() doesn't properly understand MDT indices greater than 9. |
| Comments |
| Comment by Bobbie Lind (Inactive) [ 11/Sep/13 ] |
|
Patch submitted here http://review.whamcloud.com/#/c/7613/ |
| Comment by Peter Jones [ 25/Sep/13 ] |
|
James Bobbie has a fix for this in gerrit already. Could you oversee that it completes testing and reviews. Thanks Peter |
| Comment by James Nunez (Inactive) [ 02/Dec/13 ] |
|
Landed to master. |