]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: add blkid_probe_set_sectorsize()
authorKarel Zak <kzak@redhat.com>
Fri, 13 Jan 2017 12:26:37 +0000 (13:26 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Jan 2017 12:26:37 +0000 (13:26 +0100)
commit76fab513b8f2c128a29c36cbc622d1a624b0be19
treea1201a04ce757f3b6a60b7f056e7c0a48d0a3c04
parent502dd53c864c26124146eb42eb9bbf5bb7b587b9
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>
libblkid/docs/libblkid-sections.txt
libblkid/src/blkid.h.in
libblkid/src/libblkid.sym
libblkid/src/probe.c