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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user