From 34ef7a68d316ad8d43d6ef0ae8e17833edb0c980 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 3 Dec 2008 15:11:10 +0100 Subject: [PATCH] blkid: fix highpoint37x offset Signed-off-by: Karel Zak --- libs/blkid/src/probers/highpoint_raid.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libs/blkid/src/probers/highpoint_raid.c b/libs/blkid/src/probers/highpoint_raid.c index 3ced45ae..c7c92db4 100644 --- a/libs/blkid/src/probers/highpoint_raid.c +++ b/libs/blkid/src/probers/highpoint_raid.c @@ -19,10 +19,6 @@ struct hpt45x_metadata { uint32_t magic; }; -#define HPT37X_CONFIG_OFF 0x1200 -#define HPT37X_MAGIC_OK 0x5a7816f0 -#define HPT37X_MAGIC_BAD 0x5a7816fd - #define HPT45X_MAGIC_OK 0x5a7816f3 #define HPT45X_MAGIC_BAD 0x5a7816fd @@ -59,8 +55,8 @@ const struct blkid_idinfo highpoint37x_idinfo = { .name = "highpoint_raid_member", .usage = BLKID_USAGE_RAID, .magics = { - { .magic = "\xf0\x16\x78\x5a", .len = 4, .sboff = 32 }, - { .magic = "\xfd\x16\x78\x5a", .len = 4, .sboff = 32 }, + { .magic = "\xf0\x16\x78\x5a", .len = 4, .kboff = 4 }, + { .magic = "\xfd\x16\x78\x5a", .len = 4, .kboff = 4 }, { NULL } } }; -- 2.39.5