search for: 5d11a2ef

Displaying 1 result from an estimated 1 matches for "5d11a2ef".

2013 Sep 14
1
Rara data corruption with --sparse
Hi, In fileio.c, function write_sparse() there is a bug that can lead to corrupt copies if the write() call only completes partially. for (l1 = 0; l1 < len && buf[l1] == 0; l1++) {} for (l2 = 0; l2 < len-l1 && buf[len-(l2+1)] == 0; l2++) {} sparse_seek += l1; if (l1 == len) return len; if (sparse_seek)