diff --git a/tvix/castore/src/fs/fuse.rs b/tvix/castore/src/fs/fuse.rs index 98793bf47..1dce43915 100644 --- a/tvix/castore/src/fs/fuse.rs +++ b/tvix/castore/src/fs/fuse.rs @@ -1,7 +1,7 @@ use std::{io, path::Path, sync::Arc, thread}; use fuse_backend_rs::{api::filesystem::FileSystem, transport::FuseSession}; -use tracing::error; +use tracing::{error, instrument}; struct FuseServer where @@ -52,10 +52,11 @@ pub struct FuseDaemon { } impl FuseDaemon { + #[instrument(skip(fs, mountpoint), fields(mountpoint=?mountpoint), err)] pub fn new(fs: FS, mountpoint: P, threads: usize) -> Result where FS: FileSystem + Sync + Send + 'static, - P: AsRef, + P: AsRef + std::fmt::Debug, { let server = Arc::new(fuse_backend_rs::api::server::Server::new(Arc::new(fs))); @@ -89,6 +90,7 @@ impl FuseDaemon { }) } + #[instrument(skip_all, err)] pub fn unmount(&mut self) -> Result<(), io::Error> { self.session .umount()