diff options
author | Lin Ma <lma@suse.com> | 2021-09-13 17:06:36 +0800 |
---|---|---|
committer | wanchao-xu <wanchao.xu@samsung.com> | 2024-01-09 19:57:03 +0800 |
commit | 98fe46fd23c27298aca8c5cb17a6c9ee5d6f4df0 (patch) | |
tree | de1422adfa843ad122727ad24d595d7293729623 /dtc | |
parent | 739c76503f946b715d3cf2b6e07d7e4e2bd3a6cc (diff) | |
download | qemu-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