[PATCH 14/37] Re: [2.6-BK-URL] NTFS: 2.1.21 - Big update with race/bugfixes

From: Anton Altaparmakov
Date: Tue Oct 19 2004 - 05:05:26 EST


This is patch 14/37 in the series. It contains the following ChangeSet:

<aia21@xxxxxxxxxx> (04/10/03 1.2018)
NTFS: Add some debugging checks to fs/ntfs/inode.c::ntfs_truncate() and fix
a typo in fs/ntfs/layout.h.

Signed-off-by: Anton Altaparmakov <aia21@xxxxxxxxxx>

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/

===================================================================

diff -Nru a/fs/ntfs/inode.c b/fs/ntfs/inode.c
--- a/fs/ntfs/inode.c 2004-10-19 10:13:56 +01:00
+++ b/fs/ntfs/inode.c 2004-10-19 10:13:56 +01:00
@@ -2289,6 +2289,8 @@
MFT_RECORD *m;
int err;

+ BUG_ON(NInoAttr(ni));
+ BUG_ON(ni->nr_extents < 0);
m = map_mft_record(ni);
if (IS_ERR(m)) {
ntfs_error(vi->i_sb, "Failed to map mft record for inode 0x%lx "
diff -Nru a/fs/ntfs/layout.h b/fs/ntfs/layout.h
--- a/fs/ntfs/layout.h 2004-10-19 10:13:56 +01:00
+++ b/fs/ntfs/layout.h 2004-10-19 10:13:56 +01:00
@@ -260,7 +260,7 @@
enum {
MFT_RECORD_IN_USE = const_cpu_to_le16(0x0001),
MFT_RECORD_IS_DIRECTORY = const_cpu_to_le16(0x0002),
-} __attrobite__ ((__packed__));
+} __attribute__ ((__packed__));

typedef le16 MFT_RECORD_FLAGS;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/