summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/root_node.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-04-05 18:20:17 +0200
committerJakob Unterwurzacher2021-04-05 18:20:17 +0200
commitf73aee72f87ba6cd3e46184ae75824fd38250f04 (patch)
tree270b10742ea9f4fb70795becb9e44d862480048e /internal/fusefrontend/root_node.go
parent043f81dd0129b78ec7d4553843f90203535fa406 (diff)
fusefrontend: print dirCache stats after unmount
Diffstat (limited to 'internal/fusefrontend/root_node.go')
-rw-r--r--internal/fusefrontend/root_node.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/fusefrontend/root_node.go b/internal/fusefrontend/root_node.go
index 2b4ad24..3a2ecf3 100644
--- a/internal/fusefrontend/root_node.go
+++ b/internal/fusefrontend/root_node.go
@@ -76,6 +76,12 @@ func NewRootNode(args Args, c *contentenc.ContentEnc, n nametransform.NameTransf
return rn
}
+// main.doMount() calls this after unmount
+func (rn *RootNode) AfterUnmount() {
+ // print stats before we exit
+ rn.dirCache.stats()
+}
+
// mangleOpenFlags is used by Create() and Open() to convert the open flags the user
// wants to the flags we internally use to open the backing file.
// The returned flags always contain O_NOFOLLOW.