Skip to content

Commit

Permalink
NTFS: Fix serious data corruption issue when writing.
Browse files Browse the repository at this point in the history
      Many thanks to Alberto Patino for testing and reporting the data
      corruption.  And many apologies for corrupting his partition.

Signed-off-by: Anton Altaparmakov <[email protected]>
  • Loading branch information
AntonAltaparmakov committed Oct 19, 2005
1 parent 7d0ffdb commit d5aeaef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ntfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5aeaef

Please sign in to comment.