Fix return value of try_to_free_disk_space().
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 238d840..3aa19d3 100644 (file)
--- 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;