bootstrap: use new libfs interface to handle requests

This commit is contained in:
2026-03-15 09:48:47 +00:00
parent 5dd99bb0a6
commit 9044281d1b

View File

@@ -185,6 +185,7 @@ int main(
return -1; return -1;
} }
fs_context_set_channel(fs, channel);
enum fs_status fs_status = fs_context_mount_filesystem( enum fs_status fs_status = fs_context_mount_filesystem(
fs, fs,
tar_mount, tar_mount,
@@ -196,6 +197,8 @@ int main(
} }
while (1) { while (1) {
fs_context_handle_request(fs);
#if 0
xpc_msg_t msg; xpc_msg_t msg;
kern_status_t status = xpc_msg_recv(channel, &msg); kern_status_t status = xpc_msg_recv(channel, &msg);
if (status != KERN_OK) { if (status != KERN_OK) {
@@ -219,6 +222,7 @@ int main(
kern_logf("message reply error %d", status); kern_logf("message reply error %d", status);
continue; continue;
} }
#endif
} }
return 0; return 0;