summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-01-11 18:17:35 +0000
committerKarel Zak <kzak@redhat.com>2023-01-24 17:26:15 +0100
commit3d59c7660cf47a14734b5f007712810c5d37056c (patch)
tree3e15d0b23b50aa7a90ca6d055067ecf9240efa63 /lib
parent216d8b054f7b4ccc80afbba4b7e4f96ccda11379 (diff)
downloadutil-linux-3d59c7660cf47a14734b5f007712810c5d37056c.tar.gz
lib/sysfs: add TODO about removable usb devices
The usage of the "removable" attribute by the USB subsystem is incorrect.
Diffstat (limited to 'lib')
-rw-r--r--lib/sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index f32535956..838b9af14 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -487,6 +487,8 @@ int sysfs_blkdev_is_removable(struct path_cxt *pc)
{
int rc = 0;
+ // FIXME usb is not actually removable
+
/* check /sys/dev/block/<maj>:<min>/removable attribute */
if (ul_path_read_s32(pc, &rc, "removable") == 0)
return rc;