forked from TrueCloudLab/rclone
lib/file: make pre-allocate detect disk full errors and return them
This commit is contained in:
parent
4fbb50422c
commit
40b58d59ad
3 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue