]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: don't rely on the non-portable d_type field in dirent
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 2 Apr 2019 12:27:44 +0000 (13:27 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 3 Apr 2019 10:31:38 +0000 (11:31 +0100)
commitebe9c6eab77e2da500c24430addfcd9f10b1676d
tree3b197f6a7c2fa2a41499bada5cd738c350565b1c
parentff376c6283c97217fa65766e3b24d27929e3ff6e
qemu: don't rely on the non-portable d_type field in dirent

d_type is a non-portable extension to the struct dirent and even if it
exists, its value may be DT_UNKNOWN if the filesystem doesn't support
it. This is common with older versions of XFS which have ftype=0
feature.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_firmware.c