]> git.ipfire.org Git - thirdparty/qemu.git/commit
file-posix: probe discard alignment on Linux block devices
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 17 Apr 2025 15:05:27 +0000 (11:05 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 Apr 2025 14:42:01 +0000 (16:42 +0200)
commitf605796aae42885034400c83ed6a9b07cd6d6481
treef285652d3566aba004a4cd16df982a23f4289acd
parent019fbfa4bcd2d3a835c241295e22ab2b5b56129b
file-posix: probe discard alignment on Linux block devices

Populate the pdiscard_alignment block limit so the block layer is able
align discard requests correctly.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20250417150528.76470-2-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c