]> git.lizzy.rs Git - plan9front.git/commit
ramfs: fix truncfile() for non multiple of extend size (64k)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 27 Feb 2021 14:08:34 +0000 (15:08 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 27 Feb 2021 14:08:34 +0000 (15:08 +0100)
commit51f4f46ae05251967a6152514d9a935e960d022b
tree5f9303a4890b12327abd9596a22e541a1c03c89f
parent692919521c15531cc0bed3006fd958b164a746ab
ramfs: fix truncfile() for non multiple of extend size (64k)

The calculation of the last block size is wrong and we can
only shrink the size of the last data block, not extend it.
sys/src/cmd/ramfs.c