Commit 26d91ad9 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed a broken invariant.

parent 7bb6fe37
......@@ -304,6 +304,7 @@ func (inode *inode) WriteAt(p []byte, off int64) (n int, err error) {
if len(inode.contents) < newLen {
padding := make([]byte, newLen-len(inode.contents))
inode.contents = append(inode.contents, padding...)
inode.attributes.Size = uint64(newLen)
}
// Copy in the data.
......
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