add option to wrap existing mounts

This commit is contained in:
Robin Appelman 2013-07-25 16:00:24 +02:00
parent 4e490b0688
commit f4b6a8aa08
2 changed files with 14 additions and 0 deletions

View File

@ -95,6 +95,13 @@ class Manager {
return $result; return $result;
} }
/**
* @return Mount[]
*/
public function getAll() {
return $this->mounts;
}
/** /**
* Find mounts by numeric storage id * Find mounts by numeric storage id
* *

View File

@ -138,4 +138,11 @@ class Mount {
} }
return $path; return $path;
} }
/**
* @param callable $wrapper
*/
public function wrapStorage($wrapper) {
$this->storage = $wrapper($this->mountPoint, $this->storage);
}
} }