Browse Source
Merge pull request #779 from trapexit/nfs-readdir
temporary fix for short readdirs on NFS
pull/780/head
trapexit
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
libfuse/lib/fuse.c
|
@ -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) |
|
|