summaryrefslogtreecommitdiff
path: root/dtc
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2021-09-13 17:06:36 +0800
committerwanchao-xu <wanchao.xu@samsung.com>2024-01-09 19:57:03 +0800
commit98fe46fd23c27298aca8c5cb17a6c9ee5d6f4df0 (patch)
treede1422adfa843ad122727ad24d595d7293729623 /dtc
parent739c76503f946b715d3cf2b6e07d7e4e2bd3a6cc (diff)
downloadqemu-arm-static-98fe46fd23c27298aca8c5cb17a6c9ee5d6f4df0.tar.gz
qemu-arm-static-98fe46fd23c27298aca8c5cb17a6c9ee5d6f4df0.tar.bz2
qemu-arm-static-98fe46fd23c27298aca8c5cb17a6c9ee5d6f4df0.zip
file-posix: fix max_iov for /dev/sg devices
Git-commit: 8ad5ab6148dca8aad297c134c09c84b0b92d45ed References: bsc#1190425 Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. On Linux the sg driver has its own way to provide the maximum number of iovecs in a scatter/gather list, so add support for it. The block device path is kept because it will be reinstated in the next patches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Lin Ma <lma@suse.com>
Diffstat (limited to 'dtc')
0 files changed, 0 insertions, 0 deletions