feat: store the mountpoint of storages in the mount options

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/47346/head
Robin Appelman 3 months ago
parent 560282a47b
commit 1071201052
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 5
      lib/private/Files/SetupManager.php

@ -107,8 +107,9 @@ class SetupManager {
$prevLogging = Filesystem::logWarningWhenAddingStorageWrapper(false);
Filesystem::addStorageWrapper('mount_options', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
if ($mount->getOptions() && $storage->instanceOfStorage(Common::class)) {
$storage->setMountOptions($mount->getOptions());
if ($storage->instanceOfStorage(Common::class)) {
$options = array_merge($mount->getOptions(), ['mount_point' => $mountPoint]);
$storage->setMountOptions($options);
}
return $storage;
});

Loading…
Cancel
Save