Skip to content

Commit

Permalink
Update to fuser 0.15
Browse files Browse the repository at this point in the history
This supplants #1081. fuser added a `fh` argument to getattr which
we introduce and subsequently ignore.

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
  • Loading branch information
blt committed Nov 6, 2024
1 parent 8c18bb3 commit 35aed42
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
33 changes: 27 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lading/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ flate2 = { version = "1.0.34", default-features = false, features = [
"rust_backend",
] }
futures = "0.3.31"
fuser = "0.14"
fuser = "0.15"
http = "0.2"
http-serde = "1.1"
hyper = { version = "0.14", features = ["client"] }
Expand Down
2 changes: 1 addition & 1 deletion lading/src/generator/file_gen/logrotate_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl Filesystem for LogrotateFS {
}

#[tracing::instrument(skip(self, reply))]
fn getattr(&mut self, _: &Request, ino: u64, reply: ReplyAttr) {
fn getattr(&mut self, _: &Request, ino: u64, _: Option<u64>, reply: ReplyAttr) {
let tick = self.get_current_tick();
let mut state = self.state.lock().expect("lock poisoned");
state.advance_time(tick);
Expand Down

0 comments on commit 35aed42

Please sign in to comment.