From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yura Pakhuchiy Subject: [PATCH] NTFS: Set ictx->ir in ntfs_index_lookup Date: Sat, 23 Jul 2005 01:38:07 +0300 Message-ID: <1122071887.2290.8.camel@chaos.void> Reply-To: Yura Pakhuchiy Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-SIuRqlPcDXCTN8S6fbdL" Cc: linux-fsdevel@vger.kernel.org, NTFS dev list Return-path: Received: from www.iptel.by ([80.94.225.5]:48067 "EHLO iptel.by") by vger.kernel.org with ESMTP id S261425AbVGVWgj (ORCPT ); Fri, 22 Jul 2005 18:36:39 -0400 To: Anton Altaparmakov Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --=-SIuRqlPcDXCTN8S6fbdL Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Anton, I found bug in libntfs and after look at kernel driver it's seems that it's present in it too. ictx->ir is not set in ntfs_index_lookup if entry is placed in INDEX_ROOT, but it should point to INDEX_ROOT in which this entry placed. Signed-off-by: Yura Pakhuchiy -- Best regards, Yura --=-SIuRqlPcDXCTN8S6fbdL Content-Disposition: attachment; filename=set_index_root.diff Content-Type: text/x-patch; name=set_index_root.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -ruNp -X kernel.ignore ntfs-2.6-devel/fs/ntfs/index.c ntfs-2.6-yura/fs/ntfs/index.c --- ntfs-2.6-devel/fs/ntfs/index.c 2005-07-01 00:38:49.000000000 +0300 +++ ntfs-2.6-yura/fs/ntfs/index.c 2005-07-22 23:47:18.000000000 +0300 @@ -209,6 +209,7 @@ ir_done: ictx->base_ni = base_ni; ictx->ia = NULL; ictx->page = NULL; + ictx->ir = ir; done: ictx->entry = ie; ictx->data = (u8*)ie + --=-SIuRqlPcDXCTN8S6fbdL--