diff options
author | Karel Zak | 2009-12-15 11:55:27 +0100 |
---|---|---|
committer | Karel Zak | 2009-12-15 11:55:27 +0100 |
commit | 2f0eb081ffb7735006dd5641360c1dcfdbcc4cc4 (patch) | |
tree | 74e2780391e3b2d990f5fc7ec1e4405370f957f9 /shlibs | |
parent | libblkid: fix Adaptec RAID detection (diff) | |
download | kernel-qcow2-util-linux-2f0eb081ffb7735006dd5641360c1dcfdbcc4cc4.tar.gz kernel-qcow2-util-linux-2f0eb081ffb7735006dd5641360c1dcfdbcc4cc4.tar.xz kernel-qcow2-util-linux-2f0eb081ffb7735006dd5641360c1dcfdbcc4cc4.zip |
libblkid: fix highpoint37x detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs')
-rw-r--r-- | shlibs/blkid/src/superblocks/highpoint_raid.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/shlibs/blkid/src/superblocks/highpoint_raid.c b/shlibs/blkid/src/superblocks/highpoint_raid.c index 4b4b85117..0d9484620 100644 --- a/shlibs/blkid/src/superblocks/highpoint_raid.c +++ b/shlibs/blkid/src/superblocks/highpoint_raid.c @@ -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 } } }; |