[LU-10883] llog backup files processing is not skipped because of string сomparison error Created: 05/Apr/18 Updated: 04/Jan/19 Resolved: 04/Jan/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.11.0 |
| Fix Version/s: | Lustre 2.13.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Artem Blagodarenko (Inactive) | Assignee: | Artem Blagodarenko (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
Buggy code was introduced in /* filter out ".bak" files */ /* sizeof(".bak") - 1 == 3 */ if (key_sz >= 3 && !memcmp(".bak", key + key_sz - 3, 3)) { CDEBUG(D_MGS, "Skipping backup file %.*s\n", key_sz, key); goto next; } 4 last key's bytes need to be compared with ".bak" |
| Comments |
| Comment by Gerrit Updater [ 05/Apr/18 ] |
|
Artem Blagodarenko (c17828@cray.com) uploaded a new patch: https://review.whamcloud.com/31886 |
| Comment by Gerrit Updater [ 04/Jan/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/31886/ |
| Comment by Peter Jones [ 04/Jan/19 ] |
|
Landed for 2.13 |