mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 22:28:40 +08:00
reset dentry buffer when rewind'ed
This commit is contained in:
parent
2e4c6c5fd1
commit
f6e37672b8
|
@ -66,6 +66,8 @@ namespace l
|
|||
uint64_t namelen;
|
||||
struct linux_dirent64 *d;
|
||||
|
||||
fuse_dirents_reset(buf_);
|
||||
|
||||
buf = (char*)g_DENTS_BUF_POOL.alloc();
|
||||
if(buf == NULL)
|
||||
return -ENOMEM;
|
||||
|
|
|
@ -70,6 +70,8 @@ namespace l
|
|||
fuse_entry_t entry;
|
||||
struct linux_dirent64 *d;
|
||||
|
||||
fuse_dirents_reset(buf_);
|
||||
|
||||
buf = (char*)g_DENTS_BUF_POOL.alloc();
|
||||
|
||||
entry.nodeid = 0;
|
||||
|
|
|
@ -72,6 +72,8 @@ namespace l
|
|||
uint64_t namelen;
|
||||
fuse_entry_t entry;
|
||||
|
||||
fuse_dirents_reset(buf_);
|
||||
|
||||
entry.nodeid = 0;
|
||||
entry.generation = 0;
|
||||
entry.entry_valid = entry_timeout_;
|
||||
|
|
|
@ -67,6 +67,8 @@ namespace l
|
|||
string fullpath;
|
||||
uint64_t namelen;
|
||||
|
||||
fuse_dirents_reset(buf_);
|
||||
|
||||
for(size_t i = 0, ei = branches_.size(); i != ei; i++)
|
||||
{
|
||||
int rv;
|
||||
|
|
Loading…
Reference in New Issue
Block a user