diff options
Diffstat (limited to 'src/storage/CompositeStorage.cxx')
-rw-r--r-- | src/storage/CompositeStorage.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/storage/CompositeStorage.cxx b/src/storage/CompositeStorage.cxx index 9a27270df..ac6fcecd9 100644 --- a/src/storage/CompositeStorage.cxx +++ b/src/storage/CompositeStorage.cxx @@ -210,6 +210,19 @@ CompositeStorage::~CompositeStorage() { } +Storage * +CompositeStorage::GetMount(const char *uri) +{ + const ScopeLock protect(mutex); + + auto result = FindStorage(uri); + if (*result.uri != 0) + /* not a mount point */ + return nullptr; + + return result.directory->storage; +} + void CompositeStorage::Mount(const char *uri, Storage *storage) { |