Handle no space left on device.

This commit is contained in:
Andreas Schneider 2008-08-22 15:26:02 +02:00
parent f607dfbefa
commit ebfbcf18a5

View file

@ -223,6 +223,8 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
if (csync_vio_close(ctx, dfp) < 0) { if (csync_vio_close(ctx, dfp) < 0) {
dfp = NULL; dfp = NULL;
switch (errno) { switch (errno) {
/* stop if no space left or quota exceeded */
case ENOSPC:
case EDQUOT: case EDQUOT:
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR,
"file: %s, command: close, error: %s", "file: %s, command: close, error: %s",