From 65589f334589df0cf161300dae18a822e425cf3a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 13 Jun 2020 01:03:55 +0200 Subject: explain /capability check --- mdk-stage1/probing.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mdk-stage1') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 32045ec69..1add7fd64 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -670,6 +670,7 @@ void find_media(enum media_bus bus) read_attribute(path, buf); long caps = strtol(buf, NULL, 16); + // GENHD_FL_UP (0x0010): indicates that the block device is “up”, with a similar meaning to network interface if (caps && !(caps & 0x0010)) { log_message("Ignoring device %s (not up)", name); free(name); -- cgit v1.2.1