Messages in this thread Patch in this message | | | Date | Mon, 19 Jan 2004 14:15:14 +0000 (GMT) | From | Anton Altaparmakov <> | Subject | [PATCH-BK-2.6] NTFS fix "du" and "stat" output (NTFS 2.1.6). |
| |
Linus, please do a
bk pull http://linux-ntfs.bkbits.net/ntfs-2.6
Thanks!
This fixes the erroneous "du" and "stat" output people reported on ntfs partitions containing compressed directories.
Best regards,
Anton -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/
===================================================================
This will update the following files:
Documentation/filesystems/ntfs.txt | 3 +++ fs/ntfs/ChangeLog | 8 ++++++++ fs/ntfs/Makefile | 2 +- fs/ntfs/inode.c | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-)
through these ChangeSets:
<aia21@cantab.net> (04/01/19 1.1474.98.1) Fix minor bug in handling of compressed directories that fixes the erroneous "du" and "stat" output people reported.
diff -Nru a/Documentation/filesystems/ntfs.txt b/Documentation/filesystems/ntfs.txt --- a/Documentation/filesystems/ntfs.txt Mon Jan 19 14:11:25 2004 +++ b/Documentation/filesystems/ntfs.txt Mon Jan 19 14:11:25 2004 @@ -272,6 +272,9 @@
Note, a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog.
+2.1.6: + - Fix minor bug in handling of compressed directories that fixes the + erroneous "du" and "stat" output people reported. 2.1.5: - Minor bug fix in attribute list attribute handling that fixes the I/O errors on "ls" of certain fragmented files found by at least two diff -Nru a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog --- a/fs/ntfs/ChangeLog Mon Jan 19 14:11:25 2004 +++ b/fs/ntfs/ChangeLog Mon Jan 19 14:11:25 2004 @@ -20,6 +20,14 @@ sufficient for synchronisation here. We then just need to make sure ntfs_readpage/writepage/truncate interoperate properly with us.
+2.1.6 - Fix minor bug in handling of compressed directories. + + - Fix bug in handling of compressed directories. A compressed + directory is not really compressed so when we set the ->i_blocks + field of a compressed directory inode we were setting it from the + non-existing field ni->itype.compressed.size which gave random + results... For directories we now always use ni->allocated_size. + 2.1.5 - Fix minor bug in attribute list attribute handling.
- Fix bug in attribute list handling. Actually it is not as much a bug diff -Nru a/fs/ntfs/Makefile b/fs/ntfs/Makefile --- a/fs/ntfs/Makefile Mon Jan 19 14:11:25 2004 +++ b/fs/ntfs/Makefile Mon Jan 19 14:11:25 2004 @@ -5,7 +5,7 @@ ntfs-objs := aops.o attrib.o compress.o debug.o dir.o file.o inode.o mft.o \ mst.o namei.o super.o sysctl.o time.o unistr.o upcase.o
-EXTRA_CFLAGS = -DNTFS_VERSION=\"2.1.5\" +EXTRA_CFLAGS = -DNTFS_VERSION=\"2.1.6\"
ifeq ($(CONFIG_NTFS_DEBUG),y) EXTRA_CFLAGS += -DDEBUG diff -Nru a/fs/ntfs/inode.c b/fs/ntfs/inode.c --- a/fs/ntfs/inode.c Mon Jan 19 14:11:25 2004 +++ b/fs/ntfs/inode.c Mon Jan 19 14:11:25 2004 @@ -1,7 +1,7 @@ /** * inode.c - NTFS kernel inode handling. Part of the Linux-NTFS project. * - * Copyright (c) 2001-2003 Anton Altaparmakov + * Copyright (c) 2001-2004 Anton Altaparmakov * * This program/include file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published @@ -1046,7 +1046,7 @@ * sizes of all non-resident attributes present to give us the Linux * correct size that should go into i_blocks (after division by 512). */ - if (!NInoCompressed(ni)) + if (S_ISDIR(vi->i_mode) || !NInoCompressed(ni)) vi->i_blocks = ni->allocated_size >> 9; else vi->i_blocks = ni->itype.compressed.size >> 9; =================================================================== This BitKeeper patch contains the following changesets: 1.1474.98.1 ## Wrapped with gzip_uu ##
M'XL( (_E"T ]U7:V_B.!3]3'[%7>9+NR."G7>0&)4I[0R:;J>"Z6JE[0J9 MQ(&H28QB V65'[]V4@KEH2VHLQ\VH 3R.-?WW'/LFP]PSVG>J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%I[C^Z4M M7/L(5V!HX/]HQJSZ@0.>6*5U@B6Z'F"MIW97?_SH=X:7US>=+P-H0Z-[^^-Z M,/S]JC_H?;]M/]1+VSS47U7K>='>*M91'8%&'J?I11B/*5-T_;DB\Z]]G8'D M#7F20-LV"MGD>FXUE2'GB*(9T##^7_UMU2,=T,8S>Z=(PU+24#OX%2[9=)G' MXXF L^ <)"FXH9HFZ&2"9=!)!)F2/"6/;*YUY=N'KQY]/M;B",X&P]Z@V^N? MS=7T,DSEF,ZA*."7VU[&+E^X.<OB\_/U>U<PH7*VFZ5M.[!-%+A8^P>,6Q*K $T0T - 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/
| |