mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-15 02:35:12 +08:00
when readdir's filler returns non-zero return ENOMEM. closes #7
This commit is contained in:
parent
652a299ac1
commit
36887e456f
@ -73,7 +73,8 @@ _readdir(const vector<string> &srcmounts,
|
|||||||
if(found.insert(d_name).second == false)
|
if(found.insert(d_name).second == false)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
filler(buf,de->d_name,NULL,NO_OFFSET);
|
if(filler(buf,de->d_name,NULL,NO_OFFSET) != 0)
|
||||||
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
::closedir(dh);
|
::closedir(dh);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user