summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2015-03-19 16:20:38 +0100
committerRobin Appelman <robin@icewind.nl>2015-03-19 16:20:38 +0100
commit73874ca27f102b40f40df70367e01a4045a17b3e (patch)
tree7f92975f05831748d873a5dec4c259100e51fbf0 /lib/private/util.php
parentbe6edd465a5a77ea859661feaedbeacd5a66f9db (diff)
parent7ab919256b066970a0a7139ab19bcdae5773c036 (diff)
downloadnextcloud-server-73874ca27f102b40f40df70367e01a4045a17b3e.tar.gz
nextcloud-server-73874ca27f102b40f40df70367e01a4045a17b3e.zip
Merge pull request #14704 from owncloud/storage-wrapper-mount
pass mountpoint to storage wrapper callback
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index a2024fddc3d..a048996da6e 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -98,6 +98,14 @@ class OC_Util {
return false;
}
+ \OC\Files\Filesystem::addStorageWrapper('mount_options', function($mountPoint, \OCP\Files\Storage $storage, \OCP\Files\Mount\IMountPoint $mount) {
+ if($storage->instanceOfStorage('\OC\Files\Storage\Common')) {
+ /** @var \OC\Files\Storage\Common $storage */
+ $storage->setMountOptions($mount->getOptions());
+ }
+ return $storage;
+ });
+
//if we aren't logged in, there is no use to set up the filesystem
if ($user != "") {
\OC\Files\Filesystem::addStorageWrapper('oc_quota', function ($mountPoint, $storage) {