mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-06 10:44:37 +08:00
support runtime setting of srcmounts. closes #12
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
#include "ugid.hpp"
|
||||
#include "fs.hpp"
|
||||
#include "config.hpp"
|
||||
#include "assert.hpp"
|
||||
#include "rwlock.hpp"
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
@ -73,6 +73,7 @@ namespace mergerfs
|
||||
const struct fuse_context *fc = fuse_get_context();
|
||||
const config::Config &config = config::get();
|
||||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
const rwlock::ReadGuard readlock(&config.srcmountslock);
|
||||
|
||||
return _access(*config.search,
|
||||
config.srcmounts,
|
||||
|
Reference in New Issue
Block a user