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>
Wed, 10 Nov 2021 14:01:29 +0000 (15:01 +0100)
commit7b3ff9a957630535ec58aeca7e41e6c63fa99114
treefee9dc63a3d88804da1af42de1139adcb9eb31c6
parent82b2135bf0512c11f7f21f9d0689e8ea5b4a2529
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)
src/home/homework-luks.c