From: Andre Noll Date: Thu, 24 Apr 2008 15:39:53 +0000 (+0200) Subject: Fix return value of try_to_free_disk_space(). X-Git-Tag: v0.0.5~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=0834afe5c8e5cd572ff8b466202cc609622ca85c Fix return value of try_to_free_disk_space(). We must never, ever return a system error without converting it to a dss error code first. --- diff --git a/dss.c b/dss.c index 238d840..3aa19d3 100644 --- a/dss.c +++ b/dss.c @@ -341,7 +341,7 @@ static int try_to_free_disk_space(int low_disk_space) if (ret) goto out; DSS_CRIT_LOG("uhuhu: not enough disk space for a single snapshot\n"); - ret= -ENOSPC; + ret = -ERRNO_TO_DSS_ERROR(ENOSPC); out: free_snapshot_list(&sl); return ret;