Skip to content

Commit

Permalink
Add debug print for inode number in mknod (#1111)
Browse files Browse the repository at this point in the history
## Description of change

`mknod` now prints the newly created inode number. This can help with
tracing the lifetime of an inode between FUSE requests.

## Does this change impact existing behavior?

No, small debug log addition only.

## Does this change need a changelog entry in any of the crates?

No.

<!--
    Please confirm yes or no.
    If no, add justification. If unsure, ask a reviewer.

    You can find the changelog for each crate here:
-
https://github.com/awslabs/mountpoint-s3/blob/main/mountpoint-s3/CHANGELOG.md
-
https://github.com/awslabs/mountpoint-s3/blob/main/mountpoint-s3-client/CHANGELOG.md
-
https://github.com/awslabs/mountpoint-s3/blob/main/mountpoint-s3-crt/CHANGELOG.md
-
https://github.com/awslabs/mountpoint-s3/blob/main/mountpoint-s3-crt-sys/CHANGELOG.md
-->

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and I agree to the terms of
the [Developer Certificate of Origin
(DCO)](https://developercertificate.org/).

---------

Signed-off-by: Christian Hagemeier <>
Signed-off-by: Christian Hagemeier <[email protected]>
Co-authored-by: Christian Hagemeier <>
Co-authored-by: Christian Hagemeier <[email protected]>
  • Loading branch information
c-hagem and c-hagem authored Nov 8, 2024
1 parent e354067 commit bfb9a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mountpoint-s3/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ where
.superblock
.create(&self.client, parent, name, InodeKind::File)
.await?;
debug!(ino = lookup.inode.ino(), "new inode created");
let attr = self.make_attr(&lookup);
Ok(Entry {
ttl: lookup.validity(),
Expand Down

0 comments on commit bfb9a41

Please sign in to comment.