Skip to content

Commit

Permalink
Merge pull request #462 from ccx1024cc/upmaster
Browse files Browse the repository at this point in the history
fix: fscache and virtio fail to start
  • Loading branch information
imeoer authored Jun 2, 2022
2 parents 61f0c3f + 40a016b commit c19d1b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/nydusd/service_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ pub fn create_daemon(subargs: &SubCmdArgs, bti: BuildTimeInfo) -> Result<Arc<dyn
let daemon = Arc::new(service_controller);
let machine = DaemonStateMachineContext::new(daemon.clone(), from_client, to_client);
machine.kick_state_machine()?;
daemon
.on_event(DaemonStateMachineInput::Mount)
.map_err(|e| eother!(e))?;
daemon
.on_event(DaemonStateMachineInput::Start)
.map_err(|e| eother!(e))?;
Expand Down
3 changes: 3 additions & 0 deletions src/bin/nydusd/virtiofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ pub fn create_virtiofs_daemon(
if let Some(cmd) = mount_cmd {
daemon.service.mount(cmd)?;
}
daemon
.on_event(DaemonStateMachineInput::Mount)
.map_err(|e| eother!(e))?;
daemon
.on_event(DaemonStateMachineInput::Start)
.map_err(|e| eother!(e))?;
Expand Down

0 comments on commit c19d1b5

Please sign in to comment.