parted_print patch!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



parted print patch, for parted-1.7.0
--- /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);

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux