bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parted fat bug on ARM platform


From: Lennert Buytenhek
Subject: parted fat bug on ARM platform
Date: Mon, 7 Mar 2005 20:31:49 +0100
User-agent: Mutt/1.4.1i

(please CC, not on the list.)

Hi all,

Compiling parted 1.6.15 for ARM (armv4b) seems to work, but on
startup it says:

        A bug has been detected in GNU parted.  Please email a bug
        report to address@hidden containing the version (1.6.15)
        and the following message:GNU parted was miscompiled: the FAT
        boot sector should be 512 bytes.  FAT support will be disabled.

This patch fixes that.  Note that even with this patch, unaligned
accesses are not guaranteed to work on the ARM ("anything can happen",
an unaligned read can return any value including garbage), so you
can still trash your file systems if you're not careful.


cheers,
Lennert


--- parted-1.6.15/libparted/fs_fat/bootsector.h.orig    2005-03-07 
20:26:35.721802000 +0100
+++ parted-1.6.15/libparted/fs_fat/bootsector.h 2005-03-07 20:26:47.380893000 
+0100
@@ -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));






reply via email to

[Prev in Thread] Current Thread [Next in Thread]