We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1bbca commit b07b4bfCopy full SHA for b07b4bf
src/main/runtime/system.cpp
@@ -1017,7 +1017,8 @@ namespace lsp
1017
1018
while (true)
1019
{
1020
- int res = getfsstat(list->array(), list->size(), MNT_NOWAIT);
+ int res = getfsstat(list->array(), list->size() * sizeof(struct statfs), MNT_WAIT);
1021
+ lsp_info("res = %d", int(res));
1022
if (res < 0)
1023
1024
int error = errno;
@@ -1029,7 +1030,10 @@ namespace lsp
1029
1030
}
1031
1032
else if (size_t(res) < list->size())
1033
+ {
1034
+ list->pop_n(list->size() - size_t(res));
1035
return STATUS_OK;
1036
+ }
1037
1038
// Grow the size of the list
1039
if (!list->add_n(list->size() >> 1))
0 commit comments