Skip to contentSkip to conversation

ready for v2.32 ?

DISCUSSION Ruediger Meier 4 participants 5 messages Feb 26, 2018 Util-Linux package

lore
Share & tools
lore
#0 lore raw

There is one test failure on big endian (ppc/ppc64)

[...]
blkid: superblocks probing: [37] mpool ... FAILED
(blkid/low-probe-mpool)
[...]
---------------------------------------------------------------------
1 tests of 199 FAILED
---------------------------------------------------------------------

--- /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/expected/blkid/low-probe-mpool

2018-02-26 20:14:24.265703542 +0000

+++ /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/output/blkid/low-probe-mpool 2018-02-26
20:38:14.300022547 +0000
@@ -1,6 +0,0 @@
-ID_FS_LABEL=mp1
-ID_FS_LABEL_ENC=mp1
-ID_FS_TYPE=mpool
-ID_FS_USAGE=filesystem
-ID_FS_UUID=2dfca1ea-651e-4694-976f-14654b0a8a83 -ID_FS_UUID_ENC=2dfca1ea-651e-4694-976f-14654b0a8a83

maintainer
#1 lore raw
Quoted 9 lines · Ruediger Meier

There is one test failure on big endian (ppc/ppc64)

[...]
blkid: superblocks probing: [37] mpool ... FAILED
(blkid/low-probe-mpool)
[...]
---------------------------------------------------------------------
1 tests of 199 FAILED
---------------------------------------------------------------------

I guess we have to use le32_to_cpu() osd->osb_cksum1.

John, is mpool little endian, big endian, or both?

Karel

Quoted 18 lines

--- /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/expected/blkid/low-probe-mpool

2018-02-26 20:14:24.265703542 +0000

+++ /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/output/blkid/low-probe-mpool 2018-02-26
20:38:14.300022547 +0000

(quoted diff) +0 -7
@@ -1,6 +0,0 @@
-ID_FS_LABEL=mp1
-ID_FS_LABEL_ENC=mp1
-ID_FS_TYPE=mpool
-ID_FS_USAGE=filesystem
-ID_FS_UUID=2dfca1ea-651e-4694-976f-14654b0a8a83
-ID_FS_UUID_ENC=2dfca1ea-651e-4694-976f-14654b0a8a83
--

To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw

________________________________________
From: Karel Zak <[email protected]>
Sent: Monday, February 26, 2018 4:20 PM
To: Ruediger Meier; John Groves (jgroves)
Cc: [email protected]
Subject: [EXT] Re: ready for v2.32 ?

Quoted 9 lines · Ruediger Meier

There is one test failure on big endian (ppc/ppc64)

[...]
blkid: superblocks probing: [37] mpool ... FAILED
(blkid/low-probe-mpool)
[...]
---------------------------------------------------------------------
1 tests of 199 FAILED
---------------------------------------------------------------------

I guess we have to use le32_to_cpu() osd->osb_cksum1.

John, is mpool little endian, big endian, or both?

Karel

Quoted 14 lines

--- /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/expected/blkid/low-probe-mpool

2018-02-26 20:14:24.265703542 +0000

+++ /home/abuild/rpmbuild/BUILD/util-linux-2.32-rc1-31-79bd1/tests/output/blkid/low-probe-mpool 2018-02-26
20:38:14.300022547 +0000

(quoted diff) +0 -7
@@ -1,6 +0,0 @@
-ID_FS_LABEL=mp1
-ID_FS_LABEL_ENC=mp1
-ID_FS_TYPE=mpool
-ID_FS_USAGE=filesystem
-ID_FS_UUID=2dfca1ea-651e-4694-976f-14654b0a8a83
-ID_FS_UUID_ENC=2dfca1ea-651e-4694-976f-14654b0a8a83
--
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Doh! Mpool stores its metadata as little endian, and rigorously uses le32_to_cpu and the like to move on-media structures to & from memory.

le32_to_cpu(osd->osb_cksum1) would be the correct way to handle it.

Thanks!
John

maintainer
#3 lore raw
Quoted 5 lines · John Groves (jgroves)

Doh! Mpool stores its metadata as little endian, and rigorously uses le32_to_cpu and the like to move on-media structures to & from memory.

le32_to_cpu(osd->osb_cksum1) would be the correct way to handle it.

Fixed. Thanks for quick reply!

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#4 lore raw
Quoted 8 lines · Karel Zak
Quoted 5 lines · John Groves (jgroves)

Doh! Mpool stores its metadata as little endian, and rigorously uses le32_to_cpu and the like to move on-media structures to & from memory.

le32_to_cpu(osd->osb_cksum1) would be the correct way to handle it.

Fixed. Thanks for quick reply!

Always nice to see when it was worth to ask for adding a test case :)

cu,
Rudi