summaryrefslogtreecommitdiff
path: root/shlibs/blkid/src/topology
AgeCommit message (Collapse)AuthorFilesLines
2011-01-31libblkid: conditionalise parts from blkid/topology for LinuxFabian Groffen3-7/+14
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-20use uint32_t instead of u_int32_tFabian Groffen1-4/+4
Solaris doesn't have u_int32_t, use standards uint32_t instead Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20libblkid: add blkdev.h to blkidP.hKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-14build-sys: minor changes for GNU/HurdSamuel Thibault2-0/+9
Here is a patch to fix the build on GNU/Hurd. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-04-09libblkid: fix some typosMilan Broz6-16/+16
Signed-off-by: Milan Broz <mbroz@redhat.com>
2010-03-03libblkid: cleanup usage of empty topology valuesKarel Zak3-8/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-03libblkid: support alignment_offset=-1Karel Zak4-56/+65
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>
2010-02-18libblkid: add generic functions for sysfs attributesKarel Zak1-33/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-06build-sys: fix out-of-source buildKarel Zak1-1/+1
The blkid.h file is generated and stored in $top_builddir. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-30libblkid: topology - add logical and physical sector sizeKarel Zak4-1/+87
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 Zak4-0/+73
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-09Remove now unused <sys/ioctl.h> includesGuillem Jover2-2/+0
Those became unused with the switch to the blkdev functions. Signed-off-by: Guillem Jover <guillem@hadrons.org>
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 Zak4-1/+153
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-23libblkid: minor changes to dm topology codeKarel Zak1-8/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-23libblkid: cleanup topology fallbackKarel Zak3-10/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add EVMS topology support (for old kernels)Karel Zak4-2/+78
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add DM topology support (for old kernels)Karel Zak4-2/+148
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-21libblkid: add MD topology support (for old kernels)Karel Zak4-4/+158
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-18libblkid: add private blkid_topology_set_*() functionsKarel Zak3-37/+65
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-18libblkid: allows more probing methods for topology chainKarel Zak4-139/+219
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 Zak2-0/+305
Signed-off-by: Karel Zak <kzak@redhat.com>