aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-06-21 10:54:20 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-06-22 08:45:00 -0700
commit6c3f27c5b435bccaab111d8dd32dc28473251f10 (patch)
treeb704b8e2efac410e0fb9480777b8b2f887062a9f /modules/devices.c
parenteebecc8b4064b3cfcc9895069f8f4e268ac17bb0 (diff)
Note for missing nvme info without udisks2
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/devices.c b/modules/devices.c
index a07bdcaa..0056ea6e 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -115,6 +115,7 @@ gchar *printer_list = NULL;
gchar *printer_icons = NULL;
gchar *pci_list = NULL;
gchar *input_list = NULL;
+gboolean storage_no_nvme = FALSE;
gchar *storage_list = NULL;
gchar *battery_list = NULL;
gchar *lginterval = NULL;
@@ -585,8 +586,9 @@ void scan_storage(gboolean reload)
SCAN_START();
g_free(storage_list);
storage_list = g_strdup("");
-
+ storage_no_nvme = FALSE;
if (!__scan_udisks2_devices()) {
+ storage_no_nvme = TRUE;
__scan_ide_devices();
__scan_scsi_devices();
}
@@ -781,6 +783,13 @@ const gchar *hi_note_func(gint entry)
return g_strdup(_("Resource information requires superuser privileges"));
}
}
+ else if (entry == ENTRY_STORAGE){
+ if (storage_no_nvme) {
+ return g_strdup(
+ _("Any NVMe storage devices present are not listed.\n"
+ "<b><i>udisksd</i></b> is required for NVMe devices."));
+ }
+ }
else if (entry == ENTRY_SPD){
const char *msg;
if (spd_decode_show_hinote(&msg)) {