bootstrap: use new libfs interface to handle requests
This commit is contained in:
@@ -185,6 +185,7 @@ int main(
|
||||
return -1;
|
||||
}
|
||||
|
||||
fs_context_set_channel(fs, channel);
|
||||
enum fs_status fs_status = fs_context_mount_filesystem(
|
||||
fs,
|
||||
tar_mount,
|
||||
@@ -196,6 +197,8 @@ int main(
|
||||
}
|
||||
|
||||
while (1) {
|
||||
fs_context_handle_request(fs);
|
||||
#if 0
|
||||
xpc_msg_t msg;
|
||||
kern_status_t status = xpc_msg_recv(channel, &msg);
|
||||
if (status != KERN_OK) {
|
||||
@@ -219,6 +222,7 @@ int main(
|
||||
kern_logf("message reply error %d", status);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user