]> err.no Git - util-linux/commit
libblkid: fix topology information values
authorEric Sandeen <sandeen@redhat.com>
Thu, 17 Sep 2009 21:56:00 +0000 (16:56 -0500)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Sep 2009 22:03:47 +0000 (00:03 +0200)
commit1db59ad75b7753d360f5d931d89ea177a73a3f84
tree7485638571eb2cbb1d48a2f6bf5d938e2b065aab
parent4ed18c6b46837f0ef552429917e13d8bd114b950
libblkid: fix topology information values

Looks like the topology values returned are being
inflated by x 512, but the kernel reports them in bytes;
no need for the multiplication, just return the value as-is.

With the patch it all matches:

# mdadm -D /dev/md0  | grep Chunk
     Chunk Size : 64K
# cat /sys/devices/virtual/block/md0/queue/minimum_io_size
65536
# blkid/samples/topology /dev/md0
----- NAME=value interface (values: 0):
MINIMUM_IO_SIZE = 65536
OPTIMAL_IO_SIZE = 131072
----- binary interface:
alignment offset : 0
minimum io size  : 65536
optimal io size  : 131072

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
shlibs/blkid/src/topology/topology.c