forked from lix-project/lix
archive.cc: ignore more posix_fallocate "not supported" error codes
Fixes w/musl.
This commit is contained in:
parent
ad6dbecc1d
commit
0963479741
|
@ -331,7 +331,7 @@ struct RestoreSink : ParseSink
|
||||||
filesystem doesn't support preallocation (e.g. on
|
filesystem doesn't support preallocation (e.g. on
|
||||||
OpenSolaris). Since preallocation is just an
|
OpenSolaris). Since preallocation is just an
|
||||||
optimisation, ignore it. */
|
optimisation, ignore it. */
|
||||||
if (errno && errno != EINVAL)
|
if (errno && errno != EINVAL && errno != EOPNOTSUPP && errno != ENOSYS)
|
||||||
throw SysError(format("preallocating file of %1% bytes") % len);
|
throw SysError(format("preallocating file of %1% bytes") % len);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue