diff options
| author | sparklxb <sparklxb@163.com> | 2017-03-10 14:45:53 +0800 |
|---|---|---|
| committer | sparklxb <sparklxb@163.com> | 2017-03-10 14:46:00 +0800 |
| commit | 3a67b6ddc17ae8bca7c3930749e0da2fbcf30c82 (patch) | |
| tree | 07b5a0d01cf792b73e2cca6b00b7cd43be308966 /weed/command | |
| parent | 7f85e159906a4356ae23a8d72f8893469efb5407 (diff) | |
| download | seaweedfs-3a67b6ddc17ae8bca7c3930749e0da2fbcf30c82.tar.xz seaweedfs-3a67b6ddc17ae8bca7c3930749e0da2fbcf30c82.zip | |
complement weed mount
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount_std.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index bd3b6a490..61f8119f7 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -107,8 +107,6 @@ func (dir *Dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) { return ret, nil } -const greeting = "hello, world\n" - type File struct { Id uint64 // FileId filer.FileId @@ -117,11 +115,6 @@ type File struct { func (file *File) Attr(context context.Context, attr *fuse.Attr) error { attr.Inode = file.Id - attr.Mode = 0444 - attr.Size = uint64(len(greeting)) + attr.Mode = 0000 return nil } - -func (file *File) ReadAll(ctx context.Context) ([]byte, error) { - return []byte(greeting), nil -} |
