]> err.no Git - util-linux/commitdiff
blkid: fix ocfs2 detection
authorKarel Zak <kzak@redhat.com>
Tue, 17 Mar 2009 15:05:47 +0000 (16:05 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Mar 2009 15:05:47 +0000 (16:05 +0100)
The regression tests has failed on PPC64, because
OCFS3 suberblock is in little-endian.

Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/probers/ocfs.c

index a7219be188ec123a0cc0557eefe45bef999d6e9d..f9bd11aae1b494912f66b855283529480d9742d4 100644 (file)
@@ -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;
 }