Page 1 of 1

Q: How come "probepart" shows partitions to be 2X size?

Posted: Sun 28 Mar 2010, 20:01
by sunburnt
Subject says it...
Just a thought I had, not really critical. 8)

Posted: Sun 28 Mar 2010, 20:30
by 8-bit
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.

Re: Q: How come "probepart" shows partitions to be 2X size?

Posted: Sun 28 Mar 2010, 20:40
by DMcCunney
sunburnt wrote:Subject says it...
Just a thought I had, not really critical. 8)
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

Posted: Sun 28 Mar 2010, 20:51
by 8-bit
Thank you! I assume the -k parameter is for displaying value as kilobytes and the -m parameter is for displaying megabytes.

Posted: Sun 28 Mar 2010, 21:42
by DMcCunney
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

Posted: Sun 28 Mar 2010, 23:37
by technosaurus
block size is set to 512 maybe it should be 1024?

Posted: Mon 29 Mar 2010, 01:14
by DMcCunney
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