libext2fs: fix unaligned, multiblock writes in the unix_io handler

The read-modify-write code for the unaligned fallback code wasn't
working for multi-block writes.  This was unmasked by FreeBSD 11-rc2,
since its malloc() is returning unaligned memory regions for large
memory regions.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
next
Theodore Ts'o 2016-09-11 00:25:48 -04:00
parent 4e52870eeb
commit d6cad379eb
1 changed files with 1 additions and 0 deletions

View File

@ -300,6 +300,7 @@ static errcode_t raw_write_blk(io_channel channel,
goto short_write;
size -= actual;
buf += actual;
location += actual;
}
return 0;