mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
don't flush if it's the .mergerfs pseudo file. closes #18
This commit is contained in:
parent
ec38a9c783
commit
15a0416eed
1 changed files with 7 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "config.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
|
||||
static
|
||||
|
|
@ -49,9 +50,14 @@ namespace mergerfs
|
|||
namespace flush
|
||||
{
|
||||
int
|
||||
flush(const char *path,
|
||||
flush(const char *fusepath,
|
||||
struct fuse_file_info *fi)
|
||||
{
|
||||
const config::Config &config = config::get();
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return 0;
|
||||
|
||||
return _flush(((FileInfo*)fi->fh)->fd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue