From a06a32695995aa87908288287bb2c399a088a142 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Sat, 13 Mar 2004 19:22:57 +0000 Subject: [PATCH] Fix layout.h STANDARD_INFORMATION and FILE_ATTR_FLAGS typedefs by adding the packed attribute where it was missing causing havoc due to 64 bit alignment. (Yuval Fledel) (Logical change 1.328) --- include/ntfs/layout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ntfs/layout.h b/include/ntfs/layout.h index 3216a718..7467b1e7 100644 --- a/include/ntfs/layout.h +++ b/include/ntfs/layout.h @@ -721,7 +721,7 @@ typedef enum { us whether this file has a view index present (eg. object id index, quota index, one of the security indexes or the encrypting file system related indexes). */ -} FILE_ATTR_FLAGS; +} __attribute__ ((__packed__)) FILE_ATTR_FLAGS; /* * NOTE on times in NTFS: All times are in MS standard time format, i.e. they @@ -813,8 +813,8 @@ typedef struct { partition. This, in contrast to disabling the journal is a very fast process, so the user won't even notice it. */ - }; - }; + } __attribute__ ((__packed__)); + } __attribute__ ((__packed__)); /* sizeof() = 72 bytes (NTFS 3.0) */ } __attribute__ ((__packed__)) STANDARD_INFORMATION;