bug-parted
[Top][All Lists]
Advanced

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

Re: parted "print" output formatting


From: Dax Kelson
Subject: Re: parted "print" output formatting
Date: Wed, 11 Jul 2007 11:59:28 -0600

On Wed, 2007-07-11 at 11:50 -0600, Dax Kelson wrote:
> Andrew & Richard,
> 
> With older versions of parted the output of "print" was in megabytes
> with no "human friendly" conversions and suffixes like MB or GB.
> 
> In house we wrote a script around parted that automatically created a
> new logical partition that started 1 megabyte after the last partition.
> We use this in a troubleshooting class we teach.
> 
> With older parted, I could take the output of "print" (displayed in
> megabytes only), add megabytes to it and then use those numbers with
> mkpartfs.
> 
> Now I can no longer do that with the new parted print output that has
> some numbers in MB and some in GB. I can't even convert from GB to MB
> because the GB numbers are displayed with only one decimal place
> precision.
> 
> Please consider reverting the "human friendly" print output change, or
> support a option to print (say, -m) that prints only megabyte values
> (ala, the historical output style of 'print').

Thinking about this more, changing format and requiring a backwards
compat flag that'll just produce errors in old versions is a bad change.

I would suggest reverting the change in output, and instead add a "-h"
option to print the human friendly output.

Dax Kelson
Guru Labs





reply via email to

[Prev in Thread] Current Thread [Next in Thread]