You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Truncate before copying the data to eliminate the seeks during the
copy. This also provides a hint to the file system that can minimize
allocations and fragmentation of the file.
- Avoid unneeded seeks during copy using WriteAt. This does not improve
performance since practically all time is spent on reading from the
source image.
- Fix zero detection to handle short reads. Previously we would compare
the entire buffer which can contain non-zero bytes from the previous
read.
- Fix write to handle short reads. Previously we would write the entire
buffer including data from previous read, corrupting the image.
- Fix error message for failed write. Looks like it was copied from the
read branch.
Signed-off-by: Nir Soffer <[email protected]>
0 commit comments