Skip to content
Snippets Groups Projects
Commit 2dbe5495 authored by Jan Kara's avatar Jan Kara Committed by Jens Axboe
Browse files

brd: Refuse improperly aligned discard requests


Currently when improperly aligned discard request is submitted, we just
silently discard more / less data which results in filesystem corruption
in some cases. Refuse such misaligned requests.

Signed-off-by: default avatarJan Kara <jack@suse.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c5a37883
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment