summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-10-04 16:41:12 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-10-18 16:23:39 -0400
commit94980e189242db14c41f0bd65ec46640d086ce81 (patch)
tree9ed5810622e287e0d51232353d386dcbdc2ae2d3
parent81551c8f1bcc11526be15b43526fa702f92aa983 (diff)
fill in .st_ino in .getattr
-rw-r--r--cmd_fusemount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd_fusemount.c b/cmd_fusemount.c
index dc5b5630..9bd1b0bd 100644
--- a/cmd_fusemount.c
+++ b/cmd_fusemount.c
@@ -44,6 +44,7 @@ static struct stat inode_to_stat(struct bch_fs *c,
struct bch_inode_unpacked *bi)
{
return (struct stat) {
+ .st_ino = bi->bi_inum,
.st_size = bi->bi_size,
.st_mode = bi->bi_mode,
.st_uid = bi->bi_uid,