feat: vfs - add dynamic filesystem mounts and safe unmount lifecycle

This commit is contained in:
2026-08-04 08:58:50 +02:00
parent b1c55073c7
commit ca5331c9db
12 changed files with 520 additions and 259 deletions
@@ -238,18 +238,12 @@ void filemanager_read_drives(FileManagerState* fm) {
for (int di = 0; di < driveCount; di++) {
int d = drives[di];
char probe[8];
if (d < 10) {
probe[0] = '0' + d;
probe[1] = ':';
probe[2] = '/';
probe[3] = '\0';
} else {
probe[0] = '1';
probe[1] = '0' + (d - 10);
probe[2] = ':';
probe[3] = '/';
probe[4] = '\0';
}
int pi = 0;
if (d >= 10) probe[pi++] = (char)('0' + (d / 10));
probe[pi++] = (char)('0' + (d % 10));
probe[pi++] = ':';
probe[pi++] = '/';
probe[pi] = '\0';
char label[64];
montauk::strcpy(label, "Drive ");
str_append(label, probe, 64);