Re: [patch] fat/msdos/vfat crud removal

Martin Dalecki
2002-06-09T14:57:24Z

Albert D. Cahalan wrote:

> The new struct:
>
> /* Note the end: __attribute__ ((packed)) */
> struct fat_boot_sector {
> char ignored[3]; /* Boot strap short or near jump */
> __u64 system_id; /* Name - can be used to special case
> partition manager volumes */
....
> __u16 info_sector; /* filesystem info sector */
> __u16 backup_boot; /* backup boot sector */
> __u16 reserved2[6]; /* Unused */
> } __attribute__ ((packed)) ;

And don't use __uXX but just uXX for bit field integer types in
sturctures, which are supposed to be only used by the kernel.