From 94560c68ba8974e72098e525ff1d96f11a3ae2e0 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 2 Jul 2013 16:34:58 +0200
Subject: [PATCH] rename constants

---
 lib/files/filesystem.php     | 5 +++--
 lib/files/storage/common.php | 2 +-
 lib/files/storage/local.php  | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index d6ebe7d629..4281ebba99 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -31,8 +31,9 @@
 namespace OC\Files;
 
 use OC\Files\Storage\Loader;
-const FREE_SPACE_UNKNOWN = -2;
-const FREE_SPACE_UNLIMITED = -3;
+const SPACE_NOT_COMPUTED = -1;
+const SPACE_UNKNOWN = -2;
+const SPACE_UNLIMITED = -3;
 
 class Filesystem {
 	/**
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index 3da13ac4df..8cd978f5b4 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -366,6 +366,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
 	 * @return int
 	 */
 	public function free_space($path) {
-		return \OC\Files\FREE_SPACE_UNKNOWN;
+		return \OC\Files\SPACE_UNKNOWN;
 	}
 }
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php
index b08fd73ce1..5209fabc30 100644
--- a/lib/files/storage/local.php
+++ b/lib/files/storage/local.php
@@ -265,7 +265,7 @@ if (\OC_Util::runningOnWindows()) {
 		public function free_space($path) {
 			$space = @disk_free_space($this->datadir . $path);
 			if ($space === false) {
-				return \OC\Files\FREE_SPACE_UNKNOWN;
+				return \OC\Files\SPACE_UNKNOWN;
 			}
 			return $space;
 		}
-- 
GitLab