projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0ffdb
)
NTFS: Fix serious data corruption issue when writing.
author
Anton Altaparmakov
<aia21@cantab.net>
Wed, 19 Oct 2005 11:23:10 +0000
(12:23 +0100)
committer
Anton Altaparmakov
<aia21@cantab.net>
Wed, 19 Oct 2005 11:23:10 +0000
(12:23 +0100)
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>
fs/ntfs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ntfs/file.c
b/fs/ntfs/file.c
index 5fb341a16b52ccb68601fdcd147052b698bfce85..a142bf3ba1a57f22cbe4d0ea3db472d115bd7c9a 100644
(file)
--- a/
fs/ntfs/file.c
+++ b/
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