file-posix: probe discard alignment on Linux block devices
Merge Request Required Information
JIRA: https://issues.redhat.com/browse/RHEL-86032
Signed-off-by: Stefan Hajnoczi stefanha@redhat.com
Summary of Changes
When the guest's discard_granularity does not match the host, discard request failure stops the guest with werror=stop
. These patches relax QEMU's handling of misaligned portions of discard requests to prevent disrupting guests. After all, discard is a best effort operation so there is not much harm in ignoring misaligned portions of requests.
Approved Development Ticket(s)
Resolves: RHEL-86032