Skip to content

Commit b07b4bf

Browse files
committed
up
1 parent ba1bbca commit b07b4bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/runtime/system.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,8 @@ namespace lsp
10171017

10181018
while (true)
10191019
{
1020-
int res = getfsstat(list->array(), list->size(), MNT_NOWAIT);
1020+
int res = getfsstat(list->array(), list->size() * sizeof(struct statfs), MNT_WAIT);
1021+
lsp_info("res = %d", int(res));
10211022
if (res < 0)
10221023
{
10231024
int error = errno;
@@ -1029,7 +1030,10 @@ namespace lsp
10291030
}
10301031
}
10311032
else if (size_t(res) < list->size())
1033+
{
1034+
list->pop_n(list->size() - size_t(res));
10321035
return STATUS_OK;
1036+
}
10331037

10341038
// Grow the size of the list
10351039
if (!list->add_n(list->size() >> 1))

0 commit comments

Comments
 (0)