allow to remove and change mount points

This commit is contained in:
Bjoern Schiessle 2014-04-07 19:00:03 +02:00
parent b02b6d3c23
commit 72bbb9ca20
2 changed files with 14 additions and 0 deletions

View File

@ -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
*

View File

@ -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
*