]> git.ipfire.org Git - thirdparty/systemd.git/commit
loop: parse and store disk sequence number
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 20 Jul 2021 14:25:06 +0000 (15:25 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 28 Jul 2021 18:59:38 +0000 (19:59 +0100)
commitbcef1743a5e9e972df6c38e0b263bbd9de7fac44
tree2b7c2ed300ff12220f1ff1487cbfac41fc975e27
parent122adcb294b98409c2f7ce4845d9d3ad1e4ef8b6
loop: parse and store disk sequence number

When loop devices are re-used, the disk sequence number is increased.
Parse it when creating a loop device and store it.
The kernel will never return DISKSEQ=0, so use it to signal that it's
not supported by the current kernel.
src/basic/missing_loop.h
src/shared/loop-util.c
src/shared/loop-util.h