[LU-13589] PFL "lfs setstripe -E 1M -S 65536" incorrectly parses stripe_size units Created: 20/May/20 Updated: 27/May/20 Resolved: 27/May/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.4, Lustre 2.12.5 |
| Fix Version/s: | Lustre 2.12.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Andreas Dilger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
Creating a PFL file with "lfs setstripe -E 1M -S 65536 ..." incorrectly transfers the component-end 'M' unit to the stripe_size argument, which results in "65536" being parsed as 65GiB. If the component end is specified as "-E 1G" then the "-S 65536" argument is parsed as 64TiB. |
| Comments |
| Comment by Andreas Dilger [ 20/May/20 ] |
|
This was seen in the test case for |
| Comment by Andreas Dilger [ 20/May/20 ] |
|
It looks like parsing of "size_units" was reset to 1 for every setstripe argument as part of patch https://review.whamcloud.com/34909 " |
| Comment by Gerrit Updater [ 20/May/20 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38680 |
| Comment by Gerrit Updater [ 27/May/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38680/ |
| Comment by Peter Jones [ 27/May/20 ] |
|
Landed for 2.12.5 |