mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-12-12 03:15:40 +08:00
Fixed zeroing the end of fragmented ex-holes
This commit is contained in:
parent
acccb62f9f
commit
c6c14cb256
@ -1916,7 +1916,7 @@ s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b)
|
|||||||
* partial final vcn is taken care of by the @count capping of write
|
* partial final vcn is taken care of by the @count capping of write
|
||||||
* length.
|
* length.
|
||||||
*/
|
*/
|
||||||
for (hole_end = 0; count; rl++, ofs = 0, hole_end = 0) {
|
for (hole_end = 0; count; rl++, ofs = 0) {
|
||||||
if (rl->lcn == LCN_RL_NOT_MAPPED) {
|
if (rl->lcn == LCN_RL_NOT_MAPPED) {
|
||||||
rl = ntfs_attr_find_vcn(na, rl->vcn);
|
rl = ntfs_attr_find_vcn(na, rl->vcn);
|
||||||
if (!rl) {
|
if (!rl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user