Commits

Paul Ruane  committed 1543aa6

Removed dependence upon default fuse pathfs implementation: all methods now implemented explicitly so that go-fuse API changes cause compilation rather than runtime error.

  • Participants
  • Parent commits 281f50c

Comments (0)

Files changed (1)

File src/tmsu/vfs/fusevfs.go

 )
 
 type FuseVfs struct {
-	pathfs.FileSystem
-
 	store     *storage.Storage
 	mountPath string
 	server    *fuse.Server
 	defer log.Infof("END OnUnmount()")
 }
 
-func (vfs FuseVfs) String() string {
-	return "tmsu"
-}
-
 func (vfs FuseVfs) Open(name string, flags uint32, context *fuse.Context) (nodefs.File, fuse.Status) {
 	log.Infof("BEGIN Open(%v)", name)
 	defer log.Infof("END Open(%v)", name)
 	return &fuse.StatfsOut{}
 }
 
+func (vfs FuseVfs) String() string {
+	return "tmsu"
+}
+
 func (vfs FuseVfs) Symlink(value string, linkName string, context *fuse.Context) fuse.Status {
 	log.Infof("BEGIN Symlink(%v, %v)", value, linkName)
 	defer log.Infof("END Symlink(%v, %v)", value, linkName)
 	return fuse.OK
 }
 
+func (vfs FuseVfs) Utimens(name string, Atime *time.Time, Mtime *time.Time, context *fuse.Context) (code fuse.Status) {
+	return fuse.ENOSYS
+}
+
 // non-exported
 
 func (vfs FuseVfs) splitPath(path string) []string {