unbrice / shake

Shake is a defragmenter that runs in userspace
Other
42 stars 5 forks source link

Fix calculation of last file ideal position #5

Closed kakra closed 7 years ago

kakra commented 7 years ago

I think this is a bug so I fix this: It seems that this means to calculate the ideal position of this file just before the last file in the order. To do this correctly, we need to subtract y->size and not y->blocks, as z->start is in bytes and not in blocks.

This is also part of my integration branch.


This change is Reviewable

unbrice commented 7 years ago

:lgtm: thanks


Reviewed 1 of 1 files at r1. Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable