mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
use references to srcmounts rather than copies
This commit is contained in:
parent
f7c37d2974
commit
6086620e23
49 changed files with 1050 additions and 717 deletions
|
|
@ -41,7 +41,7 @@ using std::pair;
|
|||
static
|
||||
int
|
||||
_readdir(const vector<string> &srcmounts,
|
||||
const string &dirname,
|
||||
const char *dirname,
|
||||
void *buf,
|
||||
const fuse_fill_dir_t filler)
|
||||
{
|
||||
|
|
@ -53,7 +53,8 @@ _readdir(const vector<string> &srcmounts,
|
|||
DIR *dh;
|
||||
string basepath;
|
||||
|
||||
fs::path::make(srcmounts[i],dirname,basepath);
|
||||
fs::path::make(&srcmounts[i],dirname,basepath);
|
||||
|
||||
dh = ::opendir(basepath.c_str());
|
||||
if(!dh)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue