FALSE, /* supports_online_resize_shrink */
},
{
+ "ext2", /* id */
+ "Linux Ext2", /* name */
+ TRUE, /* supports_unix_owners */
+ TRUE, /* can_mount */
+ TRUE, /* can_create */
+ 16, /* max_label_len */
+ TRUE, /* supports_label_rename */
+ TRUE, /* supports_online_label_rename*/
+ TRUE, /* supports_fsck */
+ FALSE, /* supports_online_fsck */
+ TRUE, /* supports_resize_enlarge */
+ TRUE, /* supports_online_resize_enlarge */
+ TRUE, /* supports_resize_shrink */
+ TRUE, /* supports_online_resize_shrink */
+ },
+ {
"ext3", /* id */
"Linux Ext3", /* name */
TRUE, /* supports_unix_owners */
fstype = argv[2];
new_label = g_strdup (argv[3]);
- if (strcmp (fstype, "ext3") == 0 || strcmp (fstype, "ext4") == 0) {
+ if (strcmp (fstype, "ext2") == 0 || strcmp (fstype, "ext3") == 0 || strcmp (fstype, "ext4") == 0) {
if (!validate_and_escape_label (&new_label, 16))
goto out;
command_line = g_strdup_printf ("e2label %s \"%s\"", device, new_label);
g_string_append_printf (s, " %s", device);
command_line = g_string_free (s, FALSE);
- } else if (strcmp (fstype, "ext3") == 0 || strcmp (fstype, "ext4") == 0) {
+ } else if (strcmp (fstype, "ext2") == 0 || strcmp (fstype, "ext3") == 0 || strcmp (fstype, "ext4") == 0) {
s = g_string_new ("mkfs.");
g_string_append (s, fstype);