]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: issue BLKFLSBUF before probing an fs at block device offset != 0
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Apr 2023 08:14:43 +0000 (10:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Apr 2023 11:38:32 +0000 (13:38 +0200)
commit4d49f44f0fcdaa51b7311fb9420018995945f3f3
tree78588a4ada1227cca17f3df66d489f075b8993a9
parent4646cdaa378fa2aab7334a80228d8a94b316763b
dissect-image: issue BLKFLSBUF before probing an fs at block device offset != 0

See added code comment for a longer explanation. TLDR: Linux maintains
distinct block device caches for partition and "whole" block devices,
and a simply BLKFLSBUF should make the worst confusions this causes go
away.
src/shared/dissect-image.c