Skip to content

Commit

Permalink
fix vfs.Truncate: throw error from meta.Truncate (#3596)
Browse files Browse the repository at this point in the history
Signed-off-by: xixi <[email protected]>
  • Loading branch information
Hexilee authored and SandyXSD committed Aug 23, 2023
1 parent 809334c commit 00d34eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vfs/vfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (v *VFS) Truncate(ctx Context, ino Ino, size int64, opened uint8, attr *Att
v.reader.Truncate(ino, uint64(size))
v.invalidateLength(ino)
}
return 0
return err
}

func (v *VFS) ReleaseHandler(ino Ino, fh uint64) {
Expand Down

0 comments on commit 00d34eb

Please sign in to comment.