From: Karel Zak Date: Tue, 3 Sep 2019 13:10:35 +0000 (+0200) Subject: libblkid: (xfs) fix sector size calculation X-Git-Tag: v2.35-rc1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2771d40b88660a11306aa5d4e200fc0ebebfe315;p=thirdparty%2Futil-linux.git libblkid: (xfs) fix sector size calculation Reported-by: Anatoly Pugachev Signed-off-by: Karel Zak --- diff --git a/libblkid/src/superblocks/xfs.c b/libblkid/src/superblocks/xfs.c index eb513ac3ec..98e59ff7c7 100644 --- a/libblkid/src/superblocks/xfs.c +++ b/libblkid/src/superblocks/xfs.c @@ -173,7 +173,7 @@ static int probe_xfs(blkid_probe pr, const struct blkid_idmag *mag) blkid_probe_set_label(pr, (unsigned char *) xs->sb_fname, sizeof(xs->sb_fname)); blkid_probe_set_uuid(pr, xs->sb_uuid); - blkid_probe_set_block_size(pr, xs->sb_sectsize * 256); + blkid_probe_set_block_size(pr, be16_to_cpu(xs->sb_sectsize)); return 0; }