fix comment
This commit is contained in:
parent
ab07eceead
commit
549db2beb9
|
@ -1173,9 +1173,8 @@ namespace {
|
||||||
fstore_t f = {F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, s, 0};
|
fstore_t f = {F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, s, 0};
|
||||||
if (fcntl(native_handle(), F_PREALLOCATE, &f) < 0)
|
if (fcntl(native_handle(), F_PREALLOCATE, &f) < 0)
|
||||||
{
|
{
|
||||||
// It appears Apple's new filesystem (APFS) does not
|
// MacOS returns EINVAL if the file already has the space
|
||||||
// support this control message and fails with EINVAL
|
// pre-allocated. In which case we can just move on.
|
||||||
// if so, just skip it
|
|
||||||
if (errno != EINVAL)
|
if (errno != EINVAL)
|
||||||
{
|
{
|
||||||
if (errno != ENOSPC)
|
if (errno != ENOSPC)
|
||||||
|
|
Loading…
Reference in New Issue