use fusepath from fileinfo. closes #417
@ -137,7 +137,7 @@ namespace fs
int
findonfs(const vector<string> &srcmounts,
const char *fusepath,
const string &fusepath,
const int fd,
string &basepath)
{
@ -49,7 +49,7 @@ namespace fs
vector<string> &paths);
int findonfs(const vector<string> &srcmounts,
string &basepath);
@ -41,15 +41,6 @@ namespace fs
const size_t additional_size,
int &origfd)
return fs::movefile(basepaths,fusepath.c_str(),additional_size,origfd);
}
movefile(const vector<string> &basepaths,
int rv;
int fdin;
@ -27,12 +27,6 @@ namespace fs
const std::string &fusepath,
int &origfd);
movefile(const std::vector<std::string> &basepaths,
#endif
@ -38,6 +38,14 @@ namespace fs
base += suffix;
inline
void
append(string &base,
const string &suffix)
make(const string *base,
@ -47,6 +55,16 @@ namespace fs
output = *base;
output += suffix;
const string &suffix,
string &output)
};
@ -87,7 +87,7 @@ namespace mergerfs
const rwlock::ReadGuard readlock(&config.srcmountslock);
extra = fuse_buf_size(src);
rv = fs::movefile(config.srcmounts,fusepath,extra,fi->fd);
rv = fs::movefile(config.srcmounts,fi->fusepath,extra,fi->fd);
if(rv == -1)
return -ENOSPC;