]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: add dax capability detection in topology probing
authorAnthony Iliopoulos <ailiop@suse.com>
Tue, 5 May 2020 14:31:45 +0000 (16:31 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 May 2020 13:27:29 +0000 (15:27 +0200)
commit17c57e250991b47f1882dfe74386aab56076607f
tree405f7ae1b6fbf8fe785f46a679c858cd64a48aea
parent885336d9dcab213d3c1694142611a7dfb4cd85c0
libblkid: add dax capability detection in topology probing

The dax (direct access) blockdev capability is exposed via sysfs, add it
to the list of topology values to be obtained while probing.

Expose blkid_topology_get_dax() symbol that programs can link against
for querying the capability.

Reorder the idinfos array to give precedence to the sysfs over ioctl so
that the dax probe has a chance to be executed, as there is no ioctl
interface for it.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
libblkid/samples/topology.c
libblkid/src/blkid.h.in
libblkid/src/libblkid.sym
libblkid/src/topology/sysfs.c
libblkid/src/topology/topology.c
libblkid/src/topology/topology.h