Fixed a broken invariant.
parent
7bb6fe37d2
commit
26d91ad9d7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue