[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: Bug#109613: Size column in partition list]
From: |
Timshel Knoll |
Subject: |
address@hidden: Bug#109613: Size column in partition list] |
Date: |
Mon, 10 Sep 2001 09:37:59 +1000 |
User-agent: |
Mutt/1.3.20i |
Hi Andrew,
Are you interested in this patch?
Cheers,
Timshel
----- Forwarded message from Damyan Ivanov <address@hidden> -----
Subject: Bug#109613: Size column in partition list
Reply-To: Damyan Ivanov <address@hidden>,
address@hidden
Resent-From: Damyan Ivanov <address@hidden>
Orignal-Sender: Damyan Ivanov <address@hidden>
Resent-To: Timshel Knoll <address@hidden>
Resent-Date: Wed, 22 Aug 2001 11:03:03 GMT
Resent-Message-ID: <address@hidden>
Resent-Sender: address@hidden
X-Debian-PR-Message: report 109613
X-Debian-PR-Package: parted
X-Debian-PR-Keywords: patch
From: Damyan Ivanov <address@hidden>
To: Debian Bug Tracking System <address@hidden>
X-Reportbug-Version: 1.23
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
----- End forwarded message -----
--
Timshel Knoll <address@hidden> for Debian email: <address@hidden>
Geomatics/Computer Science double degree, RMIT
Debian GNU/Linux developer, see http://people.debian.org/~timshel/
For GnuPG public key: finger address@hidden
- address@hidden: Bug#109613: Size column in partition list],
Timshel Knoll <=