summaryrefslogtreecommitdiffstats
path: root/libblkid/src/libblkid.sym
diff options
context:
space:
mode:
authorKarel Zak2017-01-13 13:26:37 +0100
committerKarel Zak2017-01-13 13:26:37 +0100
commit76fab513b8f2c128a29c36cbc622d1a624b0be19 (patch)
treea1201a04ce757f3b6a60b7f056e7c0a48d0a3c04 /libblkid/src/libblkid.sym
parentlibfdisk: change the way how apply user device properties (diff)
downloadkernel-qcow2-util-linux-76fab513b8f2c128a29c36cbc622d1a624b0be19.tar.gz
kernel-qcow2-util-linux-76fab513b8f2c128a29c36cbc622d1a624b0be19.tar.xz
kernel-qcow2-util-linux-76fab513b8f2c128a29c36cbc622d1a624b0be19.zip
libblkid: add blkid_probe_set_sectorsize()
The usual way is to use ioctl to ask block device for sector size, but this is useless for disk images (regular files). And the default (512-bytes) may be pretty wrong for disk images from 4K disks. Let's support a way how to specify proper sector size. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/libblkid.sym')
-rw-r--r--libblkid/src/libblkid.sym4
1 files changed, 4 insertions, 0 deletions
diff --git a/libblkid/src/libblkid.sym b/libblkid/src/libblkid.sym
index 6b3cf0805..cd76d6592 100644
--- a/libblkid/src/libblkid.sym
+++ b/libblkid/src/libblkid.sym
@@ -164,3 +164,7 @@ global:
BLKID_2.25 {
blkid_partlist_get_partition_by_partno;
} BLKID_2.23;
+
+BLKID_2.30 {
+ blkid_probe_set_sectorsize;
+} BLKID_2.25;