[Ocfs2-commits] smushran commits r2301 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri May 20 14:49:46 CDT 2005


Author: smushran
Signed-off-by: mfasheh
Date: 2005-05-20 14:49:44 -0500 (Fri, 20 May 2005)
New Revision: 2301

Modified:
   trunk/fs/ocfs2/ocfs2_fs.h
Log:
ocfs2_dir_entry packed so as to silence the unaligned msgs on ia64... whew
Signed-off-by: mfasheh

Modified: trunk/fs/ocfs2/ocfs2_fs.h
===================================================================
--- trunk/fs/ocfs2/ocfs2_fs.h	2005-05-20 06:40:25 UTC (rev 2300)
+++ trunk/fs/ocfs2/ocfs2_fs.h	2005-05-20 19:49:44 UTC (rev 2301)
@@ -437,6 +437,8 @@
 
 /*
  * On-disk directory entry structure for OCFS2
+ *
+ * Packed as this structure could be accessed unaligned on 64-bit platforms
  */
 struct ocfs2_dir_entry {
 /*00*/	__u64   inode;                  /* Inode number */
@@ -445,7 +447,7 @@
 	__u8    file_type;
 /*0C*/	char    name[OCFS2_MAX_FILENAME_LEN];   /* File name */
 /* Actual on-disk length specified by rec_len */
-};
+} __attribute__ ((packed));
 
 /*
  * On disk allocator group structure for OCFS2



More information about the Ocfs2-commits mailing list