]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: optimize ioctl calls in blkid_probe_set_device()
authorKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 13:49:47 +0000 (14:49 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 13:51:30 +0000 (14:51 +0100)
commitf5ea9eee5e45f9349e67506e3f7c81d8087c1cde
tree3e7fbb7db90de0ccf6f4defd6c48afc2827621b1
parent01b63ee348bc9744ec44fe5f77c2844dc12ec76b
libblkid: optimize ioctl calls in blkid_probe_set_device()

* call FDGETFDCSTAT only for block devices
* don't check floppies for device-mapper, CD-ROM features or zones

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c