From 40a31e0c325396d3c515032ad5f87299f297e204 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Jul 2020 20:22:24 +0200 Subject: v2api: list interfaces to be implemented --- internal/fusefrontend/file2_api_check.go | 23 +++++++++++++++++++++++ internal/fusefrontend/node_api_check.go | 15 ++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 internal/fusefrontend/file2_api_check.go (limited to 'internal') diff --git a/internal/fusefrontend/file2_api_check.go b/internal/fusefrontend/file2_api_check.go new file mode 100644 index 0000000..3f2c595 --- /dev/null +++ b/internal/fusefrontend/file2_api_check.go @@ -0,0 +1,23 @@ +package fusefrontend + +import ( + "github.com/hanwen/go-fuse/v2/fs" +) + +// Check that we have implemented the fs.File* interfaces +var _ = (fs.FileGetattrer)((*File2)(nil)) +var _ = (fs.FileSetattrer)((*File2)(nil)) + +/* TODO +var _ = (fs.FileHandle)((*File2)(nil)) +var _ = (fs.FileReleaser)((*File2)(nil)) +var _ = (fs.FileReader)((*File2)(nil)) +var _ = (fs.FileWriter)((*File2)(nil)) +var _ = (fs.FileGetlker)((*File2)(nil)) +var _ = (fs.FileSetlker)((*File2)(nil)) +var _ = (fs.FileSetlkwer)((*File2)(nil)) +var _ = (fs.FileLseeker)((*File2)(nil)) +var _ = (fs.FileFlusher)((*File2)(nil)) +var _ = (fs.FileFsyncer)((*File2)(nil)) +var _ = (fs.FileAllocater)((*File2)(nil)) +*/ diff --git a/internal/fusefrontend/node_api_check.go b/internal/fusefrontend/node_api_check.go index 2b3d02b..9168ea5 100644 --- a/internal/fusefrontend/node_api_check.go +++ b/internal/fusefrontend/node_api_check.go @@ -4,7 +4,7 @@ import ( "github.com/hanwen/go-fuse/v2/fs" ) -// Check that we have implemented the interfaces +// Check that we have implemented the fs.Node* interfaces var _ = (fs.NodeGetattrer)((*Node)(nil)) var _ = (fs.NodeLookuper)((*Node)(nil)) var _ = (fs.NodeReaddirer)((*Node)(nil)) @@ -16,3 +16,16 @@ var _ = (fs.NodeReadlinker)((*Node)(nil)) var _ = (fs.NodeOpener)((*Node)(nil)) var _ = (fs.NodeOpendirer)((*Node)(nil)) var _ = (fs.NodeSetattrer)((*Node)(nil)) + +/* TODO +var _ = (fs.NodeStatfser)((*Node)(nil)) +var _ = (fs.NodeGetxattrer)((*Node)(nil)) +var _ = (fs.NodeSetxattrer)((*Node)(nil)) +var _ = (fs.NodeRemovexattrer)((*Node)(nil)) +var _ = (fs.NodeListxattrer)((*Node)(nil)) +var _ = (fs.NodeCopyFileRanger)((*Node)(nil)) +var _ = (fs.NodeMknoder)((*Node)(nil)) +var _ = (fs.NodeLinker)((*Node)(nil)) +var _ = (fs.NodeSymlinker)((*Node)(nil)) +var _ = (fs.NodeRenamer)((*Node)(nil)) +*/ -- cgit v1.2.3