[Parted-maintainers] Bug#109613: marked as done (Size column in partition list)

Debian Bug Tracking System owner at bugs.debian.org
Sat Sep 17 20:33:20 BST 2005


Your message dated Sat, 17 Sep 2005 21:29:56 +0200
with message-id <20050917212956.1c87cf59.k_guillaume at libertysurf.fr>
and subject line Size column in partition list
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at maintonly) by bugs.debian.org; 22 Aug 2001 11:00:25 +0000
>From dam at creditreform.bg Wed Aug 22 06:00:25 2001
Return-path: <dam at creditreform.bg>
Received: from www.creditreform.bg (mail2.creditreform.bg) [195.138.135.177] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15ZVkF-0005Ly-00; Wed, 22 Aug 2001 06:00:24 -0500
Received: from amavis by mail2.creditreform.bg with scanned-ok (Exim 3.32 #1 (Debian))
	id 15ZVkC-0002Gh-00
	for <maintonly at bugs.debian.org>; Wed, 22 Aug 2001 14:00:20 +0300
Received: from pc1.creditreform.bg ([192.168.110.32])
	by mail2.creditreform.bg with esmtp (Exim 3.32 #1 (Debian))
	id 15ZVkA-0002FK-00; Wed, 22 Aug 2001 14:00:18 +0300
Received: from dam by pc1.creditreform.bg with local (Exim 3.32 #1 (Debian))
	id 15ZVk5-0001YH-00; Wed, 22 Aug 2001 14:00:13 +0300
From: Damyan Ivanov <divanov at creditreform.bg>
To: Debian Bug Tracking System <maintonly at bugs.debian.org>
Subject: Size column in partition list
X-Reportbug-Version: 1.23
X-Mailer: reportbug 1.23
Date: Wed, 22 Aug 2001 14:00:13 +0300
Message-Id: <E15ZVk5-0001YH-00 at pc1.creditreform.bg>
Sender: Damyan Ivanov <divanov at creditreform.bg>
Delivered-To: maintonly at bugs.debian.org

Package: parted
Version: 1.4.17-1
Severity: wishlist
Tags: patch

Wouldn't it be nice if there is a 'Size' column on 'print' output?

Example:
(parted) p
Disk geometry for /dev/hda: 0.000-14324.625 megabytes
Disk label type: msdos
Minor    Start       End        Size    Type      Filesystem  Flags
1          0.031    298.081    298.050  primary   FAT         boot
2        298.081   8032.500   7734.418  extended              
5        298.112   3294.580   2996.468  logical   ntfs        
6       3294.611   4094.692    800.081  logical   ext2        
7       4094.723   6142.038   2047.315  logical   ext2        
8       6142.069   8032.500   1890.430  logical   ext2        
3       8032.500   8158.007    125.507  primary   linux-swap  
4       8158.008  14323.579   6165.571  primary   ext2        
(parted) 

here's the patch of parted/parted.c

------8<------
--- parted.c-orig	Wed Aug 22 12:24:25 2001
+++ parted.c	Wed Aug 22 13:45:07 2001
@@ -717,7 +717,7 @@
 	has_name = ped_disk_type_check_feature (disk->type,
 			       		 PED_DISK_TYPE_PARTITION_NAME);
 
-	printf (_("Minor    Start       End     "));
+	printf (_("Minor    Start       End        Size    "));
 	if (has_extended)
 		printf (_("Type      "));
 	printf (_("Filesystem  "));
@@ -736,9 +736,11 @@
 
 		printf ("%-5d ", part->num);
 
-		printf ("%10.3f %10.3f  ",
+		printf ("%10.3f %10.3f %10.3f  ",
 			(int) part->geom.start * 1.0 / MEGABYTE_SECTORS,
-			(int) part->geom.end * 1.0 / MEGABYTE_SECTORS);
+			(int) part->geom.end * 1.0 / MEGABYTE_SECTORS,
+			(int) (part->geom.end - part->geom.start)*1.0
+			/ MEGABYTE_SECTORS);
 
 		if (has_extended)
 			printf ("%-9s ",
------8<------


Thanks,
Damyan

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux pc1 2.4.8 #1 Thu Aug 16 11:29:35 EEST 2001 i686
Locale: LANG=bg_BG, LC_CTYPE=bg_BG

Versions of packages parted depends on:
ii  e2fsprogs [libuuid1]      1.22-2         The EXT2 file system utilities and
ii  libc6                     2.2.4-1        GNU C Library: Shared libraries an
ii  libncurses5               5.2.20010318-3 Shared libraries for terminal hand
ii  libparted1.4              1.4.17-1       The GNU Parted disk partitioning l
ii  libreadline4              4.2-5          GNU readline and history libraries



---------------------------------------
Received: (at 141873-done) by bugs.debian.org; 17 Sep 2005 19:29:44 +0000
>From k_guillaume at libertysurf.fr Sat Sep 17 12:29:44 2005
Return-path: <k_guillaume at libertysurf.fr>
Received: from smtp3-g19.free.fr [212.27.42.29] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EGiNc-0007vk-00; Sat, 17 Sep 2005 12:29:44 -0700
Received: from localhost.localdomain (unknown [81.56.234.180])
	by smtp3-g19.free.fr (Postfix) with SMTP id A090224386
	for <141873-done at bugs.debian.org>; Sat, 17 Sep 2005 21:29:42 +0200 (CEST)
Date: Sat, 17 Sep 2005 21:29:56 +0200
From: "K.G." <k_guillaume at libertysurf.fr>
To: 141873-done at bugs.debian.org
Subject: Size column in partition list
Message-Id: <20050917212956.1c87cf59.k_guillaume at libertysurf.fr>
X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Delivered-To: 141873-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: parted
Version: 1.6.23-1

A size column in partition list is available since 1.6.23

Guillaume Knispel



More information about the Parted-maintainers mailing list