]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: when picking up a new file, compare inode/device info with previous open...
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2018 16:42:47 +0000 (17:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Feb 2018 14:39:31 +0000 (15:39 +0100)
commit9c66f528138f4fc856b3e9e137245b7048d5747d
tree6341ced429e399571b07d19de923d79a81522704
parentfc1813c0fe1f293909dbf4c6e67db0b86f476b8d
sd-journal: when picking up a new file, compare inode/device info with previous open file by same name

Let's make sure we aren't confused if a journal file is replaced by a
different one (for example due to rotation) if we are in a q overflow:
let's compare the inode/device information, and if it changed replace
any open file object as needed.

Fixes: #8198
src/journal/sd-journal.c