Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266034AbUAUTP1 (ORCPT ); Wed, 21 Jan 2004 14:15:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266102AbUAUTP1 (ORCPT ); Wed, 21 Jan 2004 14:15:27 -0500 Received: from sandershosting.com ([69.26.136.138]:62628 "HELO sandershosting.com") by vger.kernel.org with SMTP id S266034AbUAUTPZ convert rfc822-to-8bit (ORCPT ); Wed, 21 Jan 2004 14:15:25 -0500 Content-Type: text/plain; charset=US-ASCII From: David Sanders Reply-To: David Sanders Organization: SandersWeb.net Message-Id: <200401211412.55229@sandersweb.net> To: Anton Altaparmakov Subject: Re: [PATCH-BK-2.6] NTFS fix "du" and "stat" output (NTFS 2.1.6). Date: Wed, 21 Jan 2004 14:14:56 -0500 X-Mailer: KMail [version 1.3.2] Cc: linux-kernel@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net References: <200401211318.53776@sandersweb.net> In-Reply-To: <200401211318.53776@sandersweb.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1965 Lines: 54 On Wednesday 21 January 2004 01:24 pm, David Sanders wrote: > On Monday 19 January 2004 09:15 am, Anton Altaparmakov wrote: > > This fixes the erroneous "du" and "stat" output people reported on > > ntfs partitions containing compressed directories. > > Thanks for the quick patch. There are still problems with the > reported disk usage. I use as an example the file win.ini. With the > 2.4.24 kernel I get the following results: > $ ls -l win.ini > -r--r----- 1 root staff 399 Jan 27 2003 win.ini > > $ stat win.ini > File: "win.ini" > Size: 399 Blocks: 2 IO Block: 1024 Regular File > Device: 305h/773d Inode: 1023 Links: 1 > Access: (0440/-r--r-----) Uid: ( 0/ root) Gid: ( 50/ > staff) Access: Thu Jan 15 15:34:09 2004 > Modify: Mon Jan 27 18:54:00 2003 > Change: Sun Sep 22 07:23:44 2002 > > $ du -h win.ini > 1.0k win.ini > > But, under the 2.6.1 kernel: > $ ls -l win.ini > -r-xr-x--- 1 root staff 399 Jan 27 2003 win.ini > > $ stat win.ini > File: "win.ini" > Size: 399 Blocks: 0 IO Block: 4096 Regular File > Device: 305h/773d Inode: 1023 Links: 1 > Access: (0550/-r-xr-x---) Uid: ( 0/ root) Gid: ( 50/ > staff) Access: Thu Jan 15 15:34:09 2004 > Modify: Mon Jan 27 18:54:00 2003 > Change: Mon Jan 27 18:54:00 2003 > > $ du -h win.ini > 0 win.ini > > Now, surely the 2.4.24 kernel is reporting the more accurate disk > usage since with 2.6.1 it reports 0 blocks (vice 2). > > Thanks in advance, Also, chkdsk in winnt4 reports the cluster size in 512 bytes. The ntfs driver seems to think the size is 4096 bytes (or 1024 bytes in 2.4 kernel). Thanks, -- David Sanders linux@sandersweb.net - 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/