]> git.ipfire.org Git - thirdparty/systemd.git/commit
blockdev-util: in blockdev_partscan_enabled() check if we are operating on block...
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Oct 2025 10:35:05 +0000 (12:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Oct 2025 20:56:01 +0000 (22:56 +0200)
commitbb45a893c2cd44b7e30b31221303b6c4e10ae1ec
treee9110eb1093c2c7b6874da9eb9346d9553128ff6
parenta251345cf537ff0229fa3d4921e6ffd0ae7ed8cd
blockdev-util: in blockdev_partscan_enabled() check if we are operating on block device first

The function makes no sense on any other type of fd, hence we better
check this explicitly.
src/shared/blockdev-util.c