That patch sounds nice, but has to be tested a lot to confirm it does what it should in every situation. It especially needs testing on lots of different systems with different storages, from USB sticks to big irons. I like the description of how everything is calculated, seems like the Right Approach.