Skip to content
Commit d0f1088b authored by Al Viro's avatar Al Viro
Browse files

coredump: don't bother with do_truncate()



have dump_skip() just remember how much needs to be skipped,
leave actual seeks/writing zeroes to the next dump_emit()
or the end of coredump output, whichever comes first.
And instead of playing with do_truncate() in the end, just
write one NUL at the end of the last gap (if any).

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a38fd874
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment