Blame SOURCES/0038-libblkid-xfs-fix-sector-size-calculation.patch
|
|
7714f9 |
From 28b89361bf574af24c2f9c857d0e5f7c84e2787c Mon Sep 17 00:00:00 2001
|
|
|
7714f9 |
From: Karel Zak <kzak@redhat.com>
|
|
|
7714f9 |
Date: Tue, 3 Sep 2019 15:10:35 +0200
|
|
|
7714f9 |
Subject: [PATCH 38/40] libblkid: (xfs) fix sector size calculation
|
|
|
7714f9 |
|
|
|
7714f9 |
Reported-by: Anatoly Pugachev <matorola@gmail.com>
|
|
|
7714f9 |
Upstream: http://github.com/karelzak/util-linux/commit/2771d40b88660a11306aa5d4e200fc0ebebfe315
|
|
|
7714f9 |
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1817726
|
|
|
7714f9 |
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
7714f9 |
---
|
|
|
7714f9 |
libblkid/src/superblocks/xfs.c | 2 +-
|
|
|
7714f9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7714f9 |
|
|
|
7714f9 |
diff --git a/libblkid/src/superblocks/xfs.c b/libblkid/src/superblocks/xfs.c
|
|
|
7714f9 |
index eb513ac3e..98e59ff7c 100644
|
|
|
7714f9 |
--- a/libblkid/src/superblocks/xfs.c
|
|
|
7714f9 |
+++ b/libblkid/src/superblocks/xfs.c
|
|
|
7714f9 |
@@ -173,7 +173,7 @@ static int probe_xfs(blkid_probe pr, const struct blkid_idmag *mag)
|
|
|
7714f9 |
blkid_probe_set_label(pr, (unsigned char *) xs->sb_fname,
|
|
|
7714f9 |
sizeof(xs->sb_fname));
|
|
|
7714f9 |
blkid_probe_set_uuid(pr, xs->sb_uuid);
|
|
|
7714f9 |
- blkid_probe_set_block_size(pr, xs->sb_sectsize * 256);
|
|
|
7714f9 |
+ blkid_probe_set_block_size(pr, be16_to_cpu(xs->sb_sectsize));
|
|
|
7714f9 |
return 0;
|
|
|
7714f9 |
}
|
|
|
7714f9 |
|
|
|
7714f9 |
--
|
|
|
7714f9 |
2.25.4
|
|
|
7714f9 |
|