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
|
|
@ -16,6 +16,17 @@
|
|||
|
||||
#include <fuse.h>
|
||||
|
||||
#include "dirinfo.hpp"
|
||||
|
||||
static
|
||||
int
|
||||
_releasedir(DirInfo *di)
|
||||
{
|
||||
delete di;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
namespace mergerfs
|
||||
{
|
||||
namespace fuse
|
||||
|
|
@ -24,7 +35,9 @@ namespace mergerfs
|
|||
releasedir(const char *fusepath,
|
||||
fuse_file_info *ffi)
|
||||
{
|
||||
return 0;
|
||||
DirInfo *di = reinterpret_cast<DirInfo*>(ffi->fh);
|
||||
|
||||
return ::_releasedir(di);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue