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

Martin Dalecki (dalecki@evision-ventures.com)
Sun, 09 Jun 2002 15:51:36 +0200


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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/