1
0
mirror of https://github.com/rclone/rclone.git synced 2025-07-11 14:30:44 +02:00

lib/file: make pre-allocate detect disk full errors and return them

This commit is contained in:
Nick Craig-Wood
2021-02-17 13:05:15 +00:00
parent 4fbb50422c
commit 40b58d59ad
3 changed files with 13 additions and 4 deletions

View File

@ -42,10 +42,10 @@ again:
goto again
}
// FIXME could be doing something here
// if err == unix.ENOSPC {
// log.Printf("No space")
// }
// Wrap important errors
if err == unix.ENOSPC {
return ErrDiskFull
}
return err
}