Subject: kern/1351: struct lfs is not always 512 bytes long
To: None <gnats-bugs@NetBSD.ORG>
From: Eduardo Horvath <email@example.com>
Date: 08/12/1995 20:53:13
>Synopsis: struct lfs is not always 512 bytes long
>Responsible: kern-bug-people (Kernel Bug People)
>Arrival-Date: Sun Aug 13 00:35:02 1995
>Originator: Eduardo Horvath
Poor to middling
>Release: NetBSD-current 08-08-95
System: NetBSD home 1.0A NetBSD 1.0A (DEBUG) #305: Sat Jul 29 03:37:25 GMT 1995 root@:/home2/src/sys/arch/amiga/compile/DEBUG amiga
struct lfs in ufs/lfs.h claims to be 512 bytes long. However, since
the m68k compiler seems to be content to align long-words to word
addresses, the structure is only 510 bytes long. What's it like on
a 386 or Alpha?
Get newlfs, put it under gdb and do a sizeof(struct lfs).
I have a couple of ideas but I'm not sure they will work on all achitectures.