From 72bbb9ca20498eba18d6b6a31ed1de2306f90faf Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Mon, 7 Apr 2014 19:00:03 +0200
Subject: [PATCH] allow to remove and change mount points

---
 lib/private/files/mount/manager.php | 7 +++++++
 lib/private/files/mount/mount.php   | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/lib/private/files/mount/manager.php b/lib/private/files/mount/manager.php
index ff4a336f34..91460b7273 100644
--- a/lib/private/files/mount/manager.php
+++ b/lib/private/files/mount/manager.php
@@ -23,6 +23,13 @@ class Manager {
 		$this->mounts[$mount->getMountPoint()] = $mount;
 	}
 
+	/**
+	 * @param string $mountPoint
+	 */
+	public function removeMount($mountPoint) {
+		unset($this->mounts[$mountPoint]);
+	}
+
 	/**
 	 * Find the mount for $path
 	 *
diff --git a/lib/private/files/mount/mount.php b/lib/private/files/mount/mount.php
index 0ce2f5975c..08d5ddf348 100644
--- a/lib/private/files/mount/mount.php
+++ b/lib/private/files/mount/mount.php
@@ -65,6 +65,13 @@ class Mount {
 		return $this->mountPoint;
 	}
 
+	/**
+	 * @param string $mountPoint new mount point
+	 */
+	public function setMountPoint($mountPoint) {
+		$this->mountPoint = $mountPoint;
+	}
+
 	/**
 	 * create the storage that is mounted
 	 *
-- 
GitLab