Skip to content

Commit

Permalink
Merge branch 'master' into github/version
Browse files Browse the repository at this point in the history
  • Loading branch information
bergwolf authored Aug 7, 2023
2 parents 654771d + f419349 commit d068d7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ $ cat localfs.json
"config": {
"dir": "/<YOUR-WORK-PATH>/nydus-image/blobs"
}
},
"cache": {
"type": "blobcache",
"config": {
"work_dir": "/var/lib/nydus/cache"
}
}
},
"mode": "direct"
Expand Down
10 changes: 8 additions & 2 deletions service/src/fusedev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,21 @@ pub fn create_fuse_daemon(
|| api_sock.is_none()
{
if let Some(cmd) = mount_cmd {
daemon.service.mount(cmd)?;
daemon.service.mount(cmd).map_err(|e| {
error!("service mount error: {}", &e);
eother!(e)
})?;
}
daemon
.service
.session
.lock()
.unwrap()
.mount()
.map_err(|e| eother!(e))?;
.map_err(|e| {
error!("service session mount error: {}", &e);
eother!(e)
})?;
daemon
.on_event(DaemonStateMachineInput::Mount)
.map_err(|e| eother!(e))?;
Expand Down

0 comments on commit d068d7a

Please sign in to comment.