]> err.no Git - util-linux/commitdiff
libblkid: fix highpoint37x detection
authorKarel Zak <kzak@redhat.com>
Tue, 15 Dec 2009 10:55:27 +0000 (11:55 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Dec 2009 10:55:27 +0000 (11:55 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/highpoint_raid.c

index 4b4b851176c09a217e6005e13161851ae8faf7dd..0d9484620b944eaf85312f0135966ccbb0d703d3 100644 (file)
@@ -55,8 +55,15 @@ const struct blkid_idinfo highpoint37x_idinfo = {
        .name           = "highpoint_raid_member",
        .usage          = BLKID_USAGE_RAID,
        .magics         = {
-               { .magic = "\xf0\x16\x78\x5a", .len = 4, .kboff = 4 },
-               { .magic = "\xfd\x16\x78\x5a", .len = 4, .kboff = 4 },
+               /*
+                * Superblok offset:                      4608 bytes  (9 sectors)
+                * Magic string offset within superblock:   32 bytes
+                *
+                * kboff = (4608 + 32) / 1024
+                * sboff = (4608 + 32) % kboff
+                */
+               { .magic = "\xf0\x16\x78\x5a", .len = 4, .kboff = 4, .sboff = 544 },
+               { .magic = "\xfd\x16\x78\x5a", .len = 4, .kboff = 4, .sboff = 544 },
                { NULL }
        }
 };