From 6fff9f3f20e631d4c2d3027f1608a9c0d9f09a91 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 5 Jun 2015 13:51:27 +1000 Subject: [PATCH] Added FileSystem.Destroy. --- fuseutil/file_system.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fuseutil/file_system.go b/fuseutil/file_system.go index b8d894e..f1ed0a3 100644 --- a/fuseutil/file_system.go +++ b/fuseutil/file_system.go @@ -60,6 +60,11 @@ type FileSystem interface { FlushFile(*fuseops.FlushFileOp) error ReleaseFileHandle(*fuseops.ReleaseFileHandleOp) error ReadSymlink(*fuseops.ReadSymlinkOp) error + + // Regard all inodes (including the root inode) as having their lookup counts + // decremented to zero, and clean up any resources associated with the file + // system. No further calls to the file system will be made. + Destroy() } // Create a fuse.Server that handles ops by calling the associated FileSystem