mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix compilation error
This commit is contained in:
parent
f56339f38d
commit
43689146cc
|
@ -4,7 +4,6 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"bazil.org/fuse"
|
||||
|
@ -53,8 +52,7 @@ type File struct {
|
|||
Name string
|
||||
}
|
||||
|
||||
func (File) Attr() fuse.Attr {
|
||||
return fuse.Attr{Mode: 0444}
|
||||
func (File) Attr(attr *fuse.Attr) {
|
||||
}
|
||||
func (File) ReadAll(ctx context.Context) ([]byte, error) {
|
||||
return []byte("hello, world\n"), nil
|
||||
|
@ -65,8 +63,7 @@ type Dir struct {
|
|||
Id uint64
|
||||
}
|
||||
|
||||
func (dir Dir) Attr() fuse.Attr {
|
||||
return fuse.Attr{Inode: dir.Id, Mode: os.ModeDir | 0555}
|
||||
func (dir Dir) Attr(attr *fuse.Attr) {
|
||||
}
|
||||
|
||||
func (dir Dir) Lookup(ctx context.Context, name string) (fs.Node, error) {
|
||||
|
|
Loading…
Reference in a new issue