[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
size of struct FatBootSector in bootsector.h
From: |
Tom Otermans |
Subject: |
size of struct FatBootSector in bootsector.h |
Date: |
Wed, 6 Oct 2004 16:56:58 +0200 |
Hello All,
For our target platform (arm-xscale), parted version 1.6.14 failes when
executing and writing/reading fat partitions. The size of the struct
FatBootSector (defined in bootsector.h) has a size of 514.
We use gcc version 3.3.3 compiled with crosstools.
This patch will make parted run correctly on the arm platform:
--- orig/bootsector.h 2002-04-26 10:09:48.000000000 +0200
+++ ./bootsector.h 2004-10-06 16:34:38.936543428 +0200
@@ -107,7 +107,7 @@
uint8_t boot_code[420]; /* 5a: Boot code (or message) */
} __attribute ((packed)) fat32;
-} u;
+} __attribute ((packed)) u;
uint16_t boot_sign; /* 1fe: always 0xAA55 */
} __attribute__ ((packed));
best regards,
Tom Otermans
- size of struct FatBootSector in bootsector.h,
Tom Otermans <=