summaryrefslogtreecommitdiffstats
path: root/src/gdu
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-02-22 16:14:59 -0500
committerDavid Zeuthen <davidz@redhat.com>2009-02-22 16:14:59 -0500
commit4eecc1b2ed859854834ce4ee1f942912b6c89eb8 (patch)
tree128a1408db96043d81b8c35717ca09b6c427156c /src/gdu
parent34c82be8c5b7aff5af485a12301ec0222f264be7 (diff)
downloadgnome-disk-utility-4eecc1b2ed859854834ce4ee1f942912b6c89eb8.tar.gz
gnome-disk-utility-4eecc1b2ed859854834ce4ee1f942912b6c89eb8.tar.xz
gnome-disk-utility-4eecc1b2ed859854834ce4ee1f942912b6c89eb8.zip
add support for ext4 and add description for XFS file system
Diffstat (limited to 'src/gdu')
-rw-r--r--src/gdu/gdu-util.c36
1 files changed, 26 insertions, 10 deletions
diff --git a/src/gdu/gdu-util.c b/src/gdu/gdu-util.c
index d0dab80..153d5f2 100644
--- a/src/gdu/gdu-util.c
+++ b/src/gdu/gdu-util.c
@@ -200,9 +200,9 @@ gdu_util_get_fstype_for_display (const char *fstype, const char *fsversion, gboo
} else if (strcmp (fstype, "ext3") == 0) {
if (long_string) {
if (strlen (fsversion) > 0)
- s = g_strdup_printf (_("Linux Third Ext. FS (version %s)"), fsversion);
+ s = g_strdup_printf (_("Linux Ext3 (version %s)"), fsversion);
else
- s = g_strdup_printf (_("Linux Third Ext. FS"));
+ s = g_strdup_printf (_("Linux Ext3"));
} else {
s = g_strdup (_("ext3"));
}
@@ -215,6 +215,24 @@ gdu_util_get_fstype_for_display (const char *fstype, const char *fsversion, gboo
} else {
s = g_strdup (_("jbd"));
}
+ } else if (strcmp (fstype, "ext4") == 0) {
+ if (long_string) {
+ if (strlen (fsversion) > 0)
+ s = g_strdup_printf (_("Linux Ext4 (version %s)"), fsversion);
+ else
+ s = g_strdup_printf (_("Linux Ext4"));
+ } else {
+ s = g_strdup (_("ext4"));
+ }
+ } else if (strcmp (fstype, "xfs") == 0) {
+ if (long_string) {
+ if (strlen (fsversion) > 0)
+ s = g_strdup_printf (_("Linux XFS (version %s)"), fsversion);
+ else
+ s = g_strdup_printf (_("Linux XFS"));
+ } else {
+ s = g_strdup (_("xfs"));
+ }
} else if (strcmp (fstype, "iso9660") == 0) {
if (long_string) {
s = g_strdup (_("ISO 9660"));
@@ -437,13 +455,13 @@ gdu_util_fstype_get_description (char *fstype)
if (strcmp (fstype, "vfat") == 0)
return g_strdup (_("A popular format compatible with almost any device or system, typically "
- "used for file exchange. Maximum file size is limited to 2GB and the file "
- "system doesn't support file permissions."));
+ "used for file exchange."));
- else if (strcmp (fstype, "ext3") == 0)
+ else if (strcmp (fstype, "ext3") == 0 ||
+ strcmp (fstype, "ext4") == 0 ||
+ strcmp (fstype, "xfs") == 0)
return g_strdup (_("This file system is compatible with Linux systems only and provides classic "
- "UNIX file permissions support. Not ideal if you plan to move the disk "
- "around between different systems."));
+ "UNIX file permissions support."));
else if (strcmp (fstype, "swap") == 0)
return g_strdup (_("Swap area used by the operating system for virtual memory."));
@@ -456,9 +474,7 @@ gdu_util_fstype_get_description (char *fstype)
return g_strdup (_("No file system will be created."));
else if (strcmp (fstype, "msdos_extended_partition") == 0)
- return g_strdup (_("Create an Extended Partition for housing logical partitions. Typically "
- "used to overcome the inherent limitation of four primary partitions when "
- "using the Master Boot Record partitioning scheme."));
+ return g_strdup (_("Create an Extended Partition for logical partitions."));
else
return NULL;