| Author |
Message |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: Sun 28 Mar 2010, 16:01 Post subject:
Q: How come "probepart" shows partitions to be 2X size? |
|
Subject says it...
Just a thought I had, not really critical.
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3013 Location: Oregon
|
Posted: Sun 28 Mar 2010, 16:30 Post subject:
|
|
I just tried it from a terminal and I see what you mean.
But here is an interesting thing.
If you instead of "probepart", type "probepart --help" you do not get help.
Instead, you get probepart displaying the correct size values!
Go figure.
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Sun 28 Mar 2010, 16:40 Post subject:
Re: Q: How come "probepart" shows partitions to be 2X size? |
|
| sunburnt wrote: | Subject says it...
Just a thought I had, not really critical.  |
Hmmm. I see 8-bit's results. Looks like it's using two different standard unit sizes, depending on whether you run it with or without an argument. (And it doesn't seem to matter what the argument is.)
Update: It's a script in /sbin, and takes -k or -m as parameters.
______
Dennis
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3013 Location: Oregon
|
Posted: Sun 28 Mar 2010, 16:51 Post subject:
|
|
Thank you! I assume the -k parameter is for displaying value as kilobytes and the -m parameter is for displaying megabytes.
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Sun 28 Mar 2010, 17:42 Post subject:
|
|
| 8-bit wrote: | | Thank you! I assume the -k parameter is for displaying value as kilobytes and the -m parameter is for displaying megabytes. |
Correct. I haven't tried to analyze it to see what it defaults to if a parm isn't provided. Offhand, I'd guess it defaults to 512 bytes, which would be the disk block size.
______
Dennis
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Sun 28 Mar 2010, 19:37 Post subject:
|
|
block size is set to 512 maybe it should be 1024?
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Sun 28 Mar 2010, 21:14 Post subject:
|
|
| technosaurus wrote: | | block size is set to 512 maybe it should be 1024? |
You mean, set the default value to 1,024?
I can see the value in having it report in disk block sizes, but it ought to state what unit size it's using. And it ought to return a meaningful usage message in response to a -h parameter.
______
Dennis
|
|
Back to top
|
|
 |
|