Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update for new write interface.

  • Loading branch information...
commit d4bc535c7b71e91a71d34d7e05a31747509097be 1 parent c2da08a
@hanwen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 fs.go
View
6 fs.go
@@ -289,7 +289,7 @@ func (n *folderNode) OpenDir(context *fuse.Context) (stream []fuse.DirEntry, sta
if f.Filetype() == FILETYPE_FOLDER {
mode = fuse.S_IFDIR | 0755
}
-
+
stream = append(stream, fuse.DirEntry{Name: n, Mode: uint32(mode)})
}
return stream, fuse.OK
@@ -464,9 +464,9 @@ type pendingFile struct {
node *fileNode
}
-func (p *pendingFile) Write(input *fuse.WriteIn, data []byte) (uint32, fuse.Status) {
+func (p *pendingFile) Write(data []byte, off int64) (uint32, fuse.Status) {
p.node.dirty = true
- return p.LoopbackFile.Write(input, data)
+ return p.LoopbackFile.Write(data, off)
}
func (p *pendingFile) Truncate(size uint64) fuse.Status {
Please sign in to comment.
Something went wrong with that request. Please try again.