Subject: kern/1351: struct lfs is not always 512 bytes long
To: None <gnats-bugs@NetBSD.ORG>
From: Eduardo Horvath <eeh@btr.com>
List: netbsd-bugs
Date: 08/12/1995 20:53:13
>Number:         1351
>Category:       kern
>Synopsis:       struct lfs is not always 512 bytes long
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 13 00:35:02 1995
>Last-Modified:
>Originator:     Eduardo Horvath
>Organization:
	Poor to middling
>Release:        NetBSD-current 08-08-95
>Environment:
	
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


>Description:
	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?
>How-To-Repeat:
	Get newlfs, put it under gdb and do a sizeof(struct lfs).
>Fix:
	I have a couple of ideas but I'm not sure they will work on all achitectures.
>Audit-Trail:
>Unformatted: