瀏覽代碼

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>

Anton Altaparmakov 19 年之前
父節點
當前提交
d5aeaef37d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ntfs/file.c

+ 1 - 0
fs/ntfs/file.c

@@ -787,6 +787,7 @@ retry_remap:
 				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