]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/loopdev: fix is_loopdev() to be usable with partitions
authorKarel Zak <kzak@redhat.com>
Tue, 20 Apr 2021 11:20:12 +0000 (13:20 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Apr 2021 11:20:12 +0000 (13:20 +0200)
commitd4423cce9b9001c9de7ebc6f64f6cc2bb854944c
tree0fec029fc4704b0421df9a44a215cc31c93fe995
parent01480c61e139bc37ee5df348309c2c6e9b0f63d1
lib/loopdev: fix is_loopdev() to be usable with partitions

The current implementation of the function does not care if the device
is whole-disk device or partition, all is loopdev. This is regression
as the original is_loopdev() version was based on whole-disk devices
major numbers only.

Fixes: https://github.com/karelzak/util-linux/issues/1202
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am
lib/loopdev.c