]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/sysfs: add function blkdev_is_removable
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 11 Jan 2023 18:13:50 +0000 (18:13 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jan 2023 16:26:15 +0000 (17:26 +0100)
commit216d8b054f7b4ccc80afbba4b7e4f96ccda11379
treebe61d01144298a8b3d6197b776c42f118e2e6d59
parent32457b5efa5d4541a7d01bed9686a4f51952cd5b
lib/sysfs: add function blkdev_is_removable

This exactly represents the kernels notion of a "removable" blockdevice.
That is, the device itself is persistent but can contain some sort of
medium that can be changed at runtime.
Specifically it is *not* hotpluggable.
include/sysfs.h
lib/sysfs.c