Use int64_t, not int, to calculate writes to journal file
Work with copying journal using lseek&write, not using mmapped image, because of failure on large HDDs