summaryrefslogtreecommitdiff
path: root/shlibs/blkid/src/topology/topology.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-31libblkid: conditionalise parts from blkid/topology for LinuxFabian Groffen1-0/+2
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-09libblkid: fix some typosMilan Broz1-9/+9
Signed-off-by: Milan Broz <mbroz@redhat.com>
2010-03-03libblkid: cleanup usage of empty topology valuesKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-03libblkid: support alignment_offset=-1Karel Zak1-2/+16
Unfortunately, Linux kernel uses "signed int" for alignment_offset and the offset could be -1 for devices with undefined alignment (if no compatible sizes and alignments exist for stacked devices). There is no way how libblkid caller can respond to the value -1, so we are going to hide this corner case... TODO: maybe we can export an extra boolean value 'misaligned' rather then complete hide this problem. We will see... Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-30libblkid: topology - add logical and physical sector sizeKarel Zak1-0/+81
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-19libblkid: topology - ignore non-blockdevsKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-19libblkid: add support for topology ioctlsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-02libblkid: fix blkid_do_probe() to work properly with chainsKarel Zak1-2/+0
The blkid_do_probe() always switched to the new chain -- that's bad, we have to try all probing methods in the chain. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-01libblkid: add blkit_[un]ref() to TODOKarel Zak1-0/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-23libblkid: add LVM topology support (for old kernels)Karel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add EVMS topology support (for old kernels)Karel Zak1-1/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add DM topology support (for old kernels)Karel Zak1-1/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add MD topology support (for old kernels)Karel Zak1-3/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-18libblkid: add private blkid_topology_set_*() functionsKarel Zak1-0/+51
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-18libblkid: allows more probing methods for topology chainKarel Zak1-138/+39
This patch moves the current topology code to the separate sysfs.c file. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-18libblkid: fix topology information valuesEric Sandeen1-1/+1
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>
2009-09-16libblkid: add topology supportKarel Zak1-0/+298
Signed-off-by: Karel Zak <kzak@redhat.com>