fix comment

This commit is contained in:
arvidn 2020-01-14 14:20:19 +01:00
parent ab07eceead
commit 549db2beb9
1 changed files with 2 additions and 3 deletions

View File

@ -1173,9 +1173,8 @@ namespace {
fstore_t f = {F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, s, 0};
if (fcntl(native_handle(), F_PREALLOCATE, &f) < 0)
{
// It appears Apple's new filesystem (APFS) does not
// support this control message and fails with EINVAL
// if so, just skip it
// MacOS returns EINVAL if the file already has the space
// pre-allocated. In which case we can just move on.
if (errno != EINVAL)
{
if (errno != ENOSPC)