- - - Note 1 submitted by Dave Gilbert on 18 Aug 2002 15:31:11 (UTC) - - - Hi, For reasons of great complexity I found out the hard way that the kernel must (and does) zero the pad sections in the stat structures. Here is a comment that states this for the next person who needs to know. --- linux/include/asm-arm/stat.h.predag 2002-08-18 16:11:15.000000000 +0100 +++ linux/include/asm-arm/stat.h 2002-08-18 16:25:19.000000000 +0100 @@ -40,6 +40,8 @@ /* This matches struct stat64 in glibc2.1, hence the absolutely * insane amounts of padding around dev_t's. + * Note: The kernel zero's the padded region because glibc might read them + * in the hope that the kernel has stretched to using larger sizes. */ struct stat64 { unsigned short st_dev;