Skip to content

Conversation

sirwio
Copy link
Contributor

@sirwio sirwio commented Mar 25, 2021

Older linuxes as e.g. SLES 11 SP4 does not return EOPNOTSUPP for not supported
filesystem. Instead it returns the generic -1 failure and sets the errno with
description Operation not supported. This fix does instead check if the
operation failes with a non zero return value and in such cases revert to
posix_fallocate. Other errors as e.g. ENOSPC will hence rely to be returned by
the call to posix_fallocate.

Signed-off-by: sirwio sirwio@hotmail.com

Older linuxes as e.g. SLES 11 SP4 does not return EOPNOTSUPP for not supported
filesystem. Instead it returns the generic -1 failure and sets the errno with
description Operation not supported. This fix does instead check if the
operation failes with a non zero return value and in such cases revert to
posix_fallocate. Other errors as e.g. ENOSPC will hence rely to be returned by
the call to posix_fallocate.

Signed-off-by: sirwio <sirwio@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant