]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d2aedb128f8fb21faf7a534c48fa6128e95f4ce
tree3fd08cd95bea4b44a3dbfa844471f8f3da1b61b6
parent6f30db1f520a2255dcbbee7d7ffa9a9d4ccb0448
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