fix: invalid argument error when writing randomly into sparse files

master
szaka 2007-01-01 17:02:27 +00:00
parent f8f161ebb0
commit 0a918f567f
1 changed files with 2 additions and 0 deletions

View File

@ -977,6 +977,8 @@ static int ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs,
rlc++;
if (rlc->lcn >= 0) {
lcn_seek_from = rlc->lcn - (rlc->vcn - from_vcn);
if (lcn_seek_from < -1)
lcn_seek_from = -1;
break;
}
}