mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
enable nopath and nullpath_ok
This commit is contained in:
parent
3c8afc1bb0
commit
162b99e6b8
21 changed files with 208 additions and 55 deletions
|
|
@ -72,9 +72,6 @@ _write_direct_io(const int fd,
|
|||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
namespace mergerfs
|
||||
{
|
||||
namespace fuse
|
||||
|
|
@ -83,7 +80,6 @@ namespace mergerfs
|
|||
inline
|
||||
int
|
||||
write(WriteFunc func,
|
||||
const char *fusepath,
|
||||
const char *buf,
|
||||
const size_t count,
|
||||
const off_t offset,
|
||||
|
|
@ -103,7 +99,7 @@ namespace mergerfs
|
|||
const ugid::Set ugid(0,0);
|
||||
const rwlock::ReadGuard readlock(&config.srcmountslock);
|
||||
|
||||
rv = fs::movefile(config.srcmounts,fusepath,count,fi->fd);
|
||||
rv = fs::movefile(config.srcmounts,fi->fusepath,count,fi->fd);
|
||||
if(rv == -1)
|
||||
return -ENOSPC;
|
||||
|
||||
|
|
@ -121,7 +117,7 @@ namespace mergerfs
|
|||
off_t offset,
|
||||
fuse_file_info *ffi)
|
||||
{
|
||||
return write(_write,fusepath,buf,count,offset,ffi);
|
||||
return write(_write,buf,count,offset,ffi);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -131,7 +127,7 @@ namespace mergerfs
|
|||
off_t offset,
|
||||
fuse_file_info *ffi)
|
||||
{
|
||||
return write(_write_direct_io,fusepath,buf,count,offset,ffi);
|
||||
return write(_write_direct_io,buf,count,offset,ffi);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue