Commit 7309e48
committed
Fix last blocknr calculation in nova_truncate_file_blocks
A truncate following fallocate (file size 0) does not really truncate
the file blocks allocated, and a write after that will write to old blocks.
Fix last blocknr calculation so the blocks will be truncated.1 parent 9b8cfca commit 7309e48
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
| |||
0 commit comments