[LU-12361] cp --sparse doesn't work correctly in Created: 30/May/19 Updated: 29/May/20 Resolved: 04/Jun/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.13.0, Lustre 2.12.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Wang Shilong (Inactive) | Assignee: | Wang Shilong (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
When running copy a sparse file, it caused file different: + rm -f k + dd bs=1k seek=128 of=k 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000324957 s, 0.0 kB/s + ls -l k -rw-r--r-- 1 root root 131072 May 30 17:17 k + du -sb k 131072 k + printf y + ls -l k -rw-r--r-- 1 root root 131073 May 30 17:17 k + du -sb k 131073 k + cp --sparse=always k k2 + ls -l k2 -rw-r--r-- 1 ddn01 ddn 131073 May 30 17:17 k2 + du -sb k2 131073 k2 + echo 0 0 + cmp k k2 k k2 differ: char 131073, line 1 + echo 1 1 + diff k k2 Binary files k and k2 differ + echo 2 2 |
| Comments |
| Comment by Gerrit Updater [ 30/May/19 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34998 |
| Comment by Gerrit Updater [ 04/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34998/ |
| Comment by Peter Jones [ 04/Jun/19 ] |
|
Landed for 2.13 |
| Comment by Gerrit Updater [ 06/Jun/19 ] |
|
Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35083 |
| Comment by Gerrit Updater [ 20/Jun/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35083/ |