Commit bf44ee43 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix ReadonlyFileSystem Utimens signature.

parent f9bfdb9c
...@@ -2,6 +2,7 @@ package fuse ...@@ -2,6 +2,7 @@ package fuse
import ( import (
"fmt" "fmt"
"time"
) )
// This is a wrapper that only exposes read-only operations. // This is a wrapper that only exposes read-only operations.
...@@ -9,6 +10,8 @@ type ReadonlyFileSystem struct { ...@@ -9,6 +10,8 @@ type ReadonlyFileSystem struct {
FileSystem FileSystem
} }
var _ = (FileSystem)((*ReadonlyFileSystem) (nil))
func (fs *ReadonlyFileSystem) GetAttr(name string, context *Context) (*Attr, Status) { func (fs *ReadonlyFileSystem) GetAttr(name string, context *Context) (*Attr, Status) {
return fs.FileSystem.GetAttr(name, context) return fs.FileSystem.GetAttr(name, context)
} }
...@@ -89,7 +92,7 @@ func (fs *ReadonlyFileSystem) Create(name string, flags uint32, mode uint32, con ...@@ -89,7 +92,7 @@ func (fs *ReadonlyFileSystem) Create(name string, flags uint32, mode uint32, con
return nil, EPERM return nil, EPERM
} }
func (fs *ReadonlyFileSystem) Utimens(name string, AtimeNs int64, CtimeNs int64, context *Context) (code Status) { func (fs *ReadonlyFileSystem) Utimens(name string, atime *time.Time, ctime *time.Time, context *Context) (code Status) {
return EPERM return EPERM
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment