[Ocfs2-tools-commits] smushran commits r907 - trunk/libocfs2/include
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri May 20 14:50:50 CDT 2005
Author: smushran
Signed-off-by: mfasheh
Date: 2005-05-20 14:50:49 -0500 (Fri, 20 May 2005)
New Revision: 907
Modified:
trunk/libocfs2/include/ocfs2_fs.h
Log:
ocfs2_dir_entry packed so as to silence the unaligned msgs on ia64... whew
Signed-off-by: mfasheh
Modified: trunk/libocfs2/include/ocfs2_fs.h
===================================================================
--- trunk/libocfs2/include/ocfs2_fs.h 2005-05-20 01:25:36 UTC (rev 906)
+++ trunk/libocfs2/include/ocfs2_fs.h 2005-05-20 19:50:49 UTC (rev 907)
@@ -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-tools-commits
mailing list