fs/affs: bugfix: Write files greater than page size on OFS
authorFabian Frederick <fabf@skynet.be>
Mon, 24 Apr 2017 20:13:10 +0000 (22:13 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Apr 2017 03:54:06 +0000 (23:54 -0400)
commita80f2d2224544f708b50091b18753f4b530f70c1
tree3fd08cd95bea4b44a3dbfa844471f8f3da1b61b6
parent077e073e8f9ebc6bdd3f3f0324b16db07147a232
fs/affs: bugfix: Write files greater than page size on OFS

Previous AFFS patch fixed OFS write operations but unveiled
another bug: files greater than 4KB are being created with a wrong
size resulting in errors like the following:

dd if=/dev/zero of=file bs=4097 count=1
cp file /mnt/affs/
cp: error writing '/mnt/affs/file': Bad address

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/file.c