homework: don't bother with BLKRRPART on images that aren't block devices
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Oct 2021 09:23:00 +0000 (11:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jan 2022 09:46:02 +0000 (10:46 +0100)
commit96cc3e5d5e2d31bc12b6b33c00f3fdbcd8d2a877
treefddbd4ad0ec2b5ed5061eb19c3cbe64431ac2e2b
parent68a96349b803220985f793d26c37fb270f8a4ade
homework: don't bother with BLKRRPART on images that aren't block devices

We currently call this ioctl even if we are backed by a regular file,
which is actually the common case. While this doesn't really hurt, it
does result in very confusing logs.

(cherry picked from commit 6a1301d8c97dc650e4355bb7c193f5821b3383a8)
(cherry picked from commit 7b3ff9a957630535ec58aeca7e41e6c63fa99114)
src/home/homework-luks.c