diff options
| author | David Zeuthen <davidz@redhat.com> | 2008-05-13 18:41:46 -0400 |
|---|---|---|
| committer | David Zeuthen <davidz@redhat.com> | 2008-05-13 18:41:46 -0400 |
| commit | ab25f39cd7ca24b89acd4e731872a7dffb95bb0a (patch) | |
| tree | 9b8c47071a94d2cab485e04d68be56171a7877ff /src | |
| parent | 9b7b07670c11cdff901468bb7eb265012c152d60 (diff) | |
adjust details for linux md arrays
s/Connected via Virtual/Linux Software RAID/
Diffstat (limited to 'src')
| -rw-r--r-- | src/gdu-shell.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/gdu-shell.c b/src/gdu-shell.c index 9f564dc..fee0d01 100644 --- a/src/gdu-shell.c +++ b/src/gdu-shell.c @@ -227,19 +227,25 @@ details_update (GduShell *shell) details2 = NULL; details3 = NULL; - if (GDU_IS_ACTIVATABLE_DRIVE (presentable) && device == NULL) { - /* not yet activated */ - - /* TODO: set details */ - - } else if (GDU_IS_DRIVE (presentable)) { + if (GDU_IS_DRIVE (presentable)) { details3 = g_strdup (device_file); - s = gdu_util_get_connection_for_display ( - gdu_device_drive_get_connection_interface (device), - gdu_device_drive_get_connection_speed (device)); - details1 = g_strdup_printf ("Connected via %s", s); - g_free (s); + if (GDU_IS_ACTIVATABLE_DRIVE (presentable)) { + switch (gdu_activatable_drive_get_kind (GDU_ACTIVATABLE_DRIVE (presentable))) { + case GDU_ACTIVATABLE_DRIVE_KIND_LINUX_MD: + details1 = g_strdup (_("Linux Software RAID")); + break; + default: + details1 = g_strdup (_("Activatable Drive")); + break; + } + } else { + s = gdu_util_get_connection_for_display ( + gdu_device_drive_get_connection_interface (device), + gdu_device_drive_get_connection_speed (device)); + details1 = g_strdup_printf (_("Connected via %s"), s); + g_free (s); + } if (gdu_device_is_removable (device)) { if (gdu_device_is_partition_table (device)) { |
