mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-15 02:35:12 +08:00
temporary fix for short readdirs on NFS
This commit is contained in:
parent
06660ca25e
commit
62899565e6
@ -3498,7 +3498,7 @@ fuse_lib_readdir(fuse_req_t req_,
|
|||||||
pthread_mutex_lock(&dh->lock);
|
pthread_mutex_lock(&dh->lock);
|
||||||
|
|
||||||
rv = 0;
|
rv = 0;
|
||||||
if(off_ == 0)
|
if((off_ == 0) || (d->data_len == 0))
|
||||||
rv = readdir_fill(f,req_,d,&fi);
|
rv = readdir_fill(f,req_,d,&fi);
|
||||||
|
|
||||||
if(rv)
|
if(rv)
|
||||||
@ -3544,7 +3544,7 @@ fuse_lib_readdir_plus(fuse_req_t req_,
|
|||||||
pthread_mutex_lock(&dh->lock);
|
pthread_mutex_lock(&dh->lock);
|
||||||
|
|
||||||
rv = 0;
|
rv = 0;
|
||||||
if(off_ == 0)
|
if((off_ == 0) || (d->data_len == 0))
|
||||||
rv = readdir_plus_fill(f,req_,d,&fi);
|
rv = readdir_plus_fill(f,req_,d,&fi);
|
||||||
|
|
||||||
if(rv)
|
if(rv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user