From 55e75fddb1a780c0e75c0b98350be04a14efd4e0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 17 Mar 2009 16:05:47 +0100 Subject: [PATCH] blkid: fix ocfs2 detection The regression tests has failed on PPC64, because OCFS3 suberblock is in little-endian. Signed-off-by: Karel Zak --- libs/blkid/src/probers/ocfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/blkid/src/probers/ocfs.c b/libs/blkid/src/probers/ocfs.c index a7219be1..f9bd11aa 100644 --- a/libs/blkid/src/probers/ocfs.c +++ b/libs/blkid/src/probers/ocfs.c @@ -150,7 +150,8 @@ static int probe_ocfs2(blkid_probe pr, const struct blkid_idmag *mag) blkid_probe_set_uuid(pr, osb->s_uuid); blkid_probe_sprintf_version(pr, "%u.%u", - osb->s_major_rev_level, osb->s_minor_rev_level); + le16_to_cpu(osb->s_major_rev_level), + le16_to_cpu(osb->s_minor_rev_level)); return 0; } -- 2.39.5