[Gluster-devel] parted_print patch!
Harshavardhana Ranganath
harsha at 80x25.org
Tue Jul 25 19:46:08 UTC 2006
parted print patch, for parted-1.7.0
-------------- next part --------------
--- /root/parted-1.7.0/parted/parted.c 2006-05-15 15:39:26.000000000 +0530
+++ parted.c 2006-07-26 01:12:01.093612873 +0530
@@ -1104,7 +1104,6 @@ partition_print_flags (PedPartition* par
res = _res;
strncat (res, ", ", 2);
}
-
name = _(ped_partition_flag_get_name (flag));
_res = res;
ped_realloc (&_res, strlen (res) + 1
@@ -1112,8 +1111,10 @@ partition_print_flags (PedPartition* par
res = _res;
strncat (res, name, 21);
}
- }
+ }
+ if (first_flag)
+ strncat (res, "* ", 2);
return res;
}
@@ -1340,7 +1341,7 @@ do_print (PedDevice** dev)
str_list_append (row, name);
str_list_append (row, part->fs_type ?
- part->fs_type->name : "");
+ part->fs_type->name : "-");
if (has_name)
str_list_append (row, name);
More information about the Gluster-devel
mailing list