fix fallocate issue when filesystem doesn't support it

This commit is contained in:
Arvid Norberg
2013-06-24 03:26:17 +00:00
parent f41ceab27c
commit 1523a196e5
2 changed files with 17 additions and 3 deletions

View File

@@ -2096,7 +2096,7 @@ typedef struct _FILE_ALLOCATED_RANGE_BUFFER {
// way. If fallocate failed with some other error, it
// probably means the user should know about it, error out
// and report it.
if (errno != ENOSYS && errno != EOPNOTSUPP)
if (errno != ENOSYS && errno != EOPNOTSUPP && errno != EINVAL)
{
ec.assign(errno, get_posix_category());
return false;