NTFS: Fix serious data corruption issue when writing.
Many thanks to Alberto Patino for testing and reporting the data corruption. And many apologies for corrupting his partition. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
This commit is contained in:
parent
7d0ffdb279
commit
d5aeaef37d
1 changed files with 1 additions and 0 deletions
|
@ -787,6 +787,7 @@ static int ntfs_prepare_pages_for_non_resident_write(struct page **pages,
|
|||
vcn_len = rl[1].vcn - vcn;
|
||||
lcn_block = lcn << (vol->cluster_size_bits -
|
||||
blocksize_bits);
|
||||
cdelta = 0;
|
||||
/*
|
||||
* If the number of remaining clusters in the
|
||||
* @pages is smaller or equal to the number of
|
||||
|
|
Loading…
Reference in a new issue