Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932280AbVJaOiw (ORCPT ); Mon, 31 Oct 2005 09:38:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932295AbVJaOiw (ORCPT ); Mon, 31 Oct 2005 09:38:52 -0500 Received: from ppsw-7.csi.cam.ac.uk ([131.111.8.137]:50097 "EHLO ppsw-7.csi.cam.ac.uk") by vger.kernel.org with ESMTP id S932280AbVJaOiv (ORCPT ); Mon, 31 Oct 2005 09:38:51 -0500 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Date: Mon, 31 Oct 2005 14:38:48 +0000 (GMT) From: Anton Altaparmakov To: Linus Torvalds cc: linux-kernel@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net Subject: [PATCH 14/17] NTFS: Fix serious data corruption issue when writing. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 32 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 --- fs/ntfs/file.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) applies-to: 66bd4d6307a81ae65a01acace5fd8ae6f5a30032 d5aeaef37dc9cb009ab5cb8abf325338d21d2b1a diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 5fb341a..a142bf3 100644 --- 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 --- 0.99.9 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/