Handle EDQUOT and ENOSPC errors

(cherry picked from commit 435ae2f2)
42 jobs for !1632 with 902-hang-when-unexpected-errno-encountered-during-log-rename-v9_11 in 14 minutes and 11 seconds (queued for 5 seconds)
merge request