[Tux3] [PATCH 03/10] Fix ileaf aligment

OGAWA Hirofumi hirofumi at mail.parknet.co.jp
Fri Oct 17 02:43:38 PDT 2008


On 64bit cpus, there is hole here.

---

 user/test/ileaf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN user/test/ileaf.c~ileaf-aligment-fix user/test/ileaf.c
--- tux3/user/test/ileaf.c~ileaf-aligment-fix	2008-10-16 01:20:42.000000000 +0900
+++ tux3-hirofumi/user/test/ileaf.c	2008-10-16 01:20:42.000000000 +0900
@@ -18,7 +18,7 @@
 #define iattr_included_from_ileaf
 #include "iattr.c"
 
-struct ileaf { u16 magic, count; inum_t ibase; char table[]; };
+struct ileaf { u16 magic, count; u32 pad; inum_t ibase; char table[]; };
 
 /*
  * inode leaf format
_

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list