From 3d59c7660cf47a14734b5f007712810c5d37056c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 11 Jan 2023 18:17:35 +0000 Subject: [PATCH] lib/sysfs: add TODO about removable usb devices The usage of the "removable" attribute by the USB subsystem is incorrect. --- lib/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sysfs.c b/lib/sysfs.c index f325359560..838b9af140 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/:/removable attribute */ if (ul_path_read_s32(pc, &rc, "removable") == 0) return rc; -- 2.47.2