This is an archive of the discontinued LLVM Phabricator instance.

[Support] On AIX, Check ENOTSUP on posix_fallocate instead of EOPNOTSUPP
ClosedPublic

Authored by hubert.reinterpretcast on Apr 2 2019, 8:27 PM.

Details

Summary

posix_fallocate can fail if the underlying filesystem does not support it; and, on AIX, such a failure is reported by a return value of ENOTSUP. The existing code checks only for EOPNOTSUPP, which may share the same value as ENOTSUP, but is not required to.

Diff Detail

Repository
rL LLVM

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2019, 8:27 PM
Herald added subscribers: jsji, kristina. · View Herald Transcript
xingxue accepted this revision.Apr 3 2019, 5:52 AM

LGTM.

This revision is now accepted and ready to land.Apr 3 2019, 5:52 AM
This revision was automatically updated to reflect the committed changes.