mirror of
https://github.com/rclone/rclone.git
synced 2026-05-12 01:57:56 -04:00
When enabled, an out-of-space error during a local write returns a fatal error that aborts the run, instead of being retried. Without this option, ENOSPC errors are treated as retryable and rclone may spin through the retry loop many times on a full disk before giving up. That is fine for transient network errors but unhelpful when the disk is genuinely full and the operator wants the run to fail loudly. Default is off so existing behaviour is unchanged. Implementation follows the pattern suggested in the issue: a defer at the top of Update wraps the error with fserrors.FatalError when the option is on and the error is disk-full. Detection covers both file.ErrDiskFull from the preallocate path and syscall.ENOSPC from io.Copy or Close, via a small helper that uses fserrors.IsErrNoSpace.