Skip to content
Snippets Groups Projects
Commit ece4fa91 authored by Maxim Levitsky's avatar Maxim Levitsky Committed by Kevin Wolf
Browse files

file-posix: allow -EBUSY errors during write zeros on raw block devices


On Linux, fallocate(fd, FALLOC_FL_PUNCH_HOLE) when it is used on a block device,
without O_DIRECT can return -EBUSY if it races with another write to the same page.

Since this is rare and discard is not a critical operation, ignore this error

Signed-off-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201111153913.41840-2-mlevitsk@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 5aaabf91
No related branches found
No related tags found
No related merge requests found
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