Subject: Re: Alignment issue in msdosfs - bpb.h
To: John Hayward <John.C.Hayward@wheaton.edu>
From: Ignatios Souvatzis <is@netbsd.org>
List: current-users
Date: 03/21/2001 07:15:54
On Tue, Mar 20, 2001 at 11:06:55PM -0600, John Hayward wrote:

> Is there a compiler flag which will allow me to use the first structure
> and retrieve the values correctly?

struct bpb710 {
        u_int16_t       bpbBytesPerSec; /* bytes per sector */
        u_int8_t        bpbSecPerClust; /* sectors per cluster */
        u_int16_t       bpbResSectors;  /* number of reserved sectors */
        u_int8_t        bpbFATs;        /* number of FATs */
	othertype otherstuff;
} __attribute__((packed));

HTH
	-is