[Info-vax] width of "size" when /unit=byte
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Wed Nov 4 18:06:24 EST 2009
Peter Weaver wrote:
> On Nov 4, 9:02 am, Jan-Erik Söderholm <jan-erik.soderh... at telia.com>
> wrote:
>> ...
>> Ah, never mind, this seems to be "fixed" in 8.3 :
>> ...
>
> I wouldn't use the word "Fixed." Try this one a V8.3 system;
>
> $ set process/units=block
> $ dir/size/width=size=2 ! if the size is over 100 blocks you get **
> which is what we should get
> $ set process/units=byte
> $ dir/size/width=size=2 ! The "fix" is to ignore the /width=size=2
>
> The help says that the default for the size field is 7 characters, but
> count the characters in this display;
> $ set process/units=byte
> $ dir/size dka0.bck;
>
> Directory DKA300:[BACKUP]
>
> dka0.bck;177 985.83MB
>
> Total of 1 file, 985.83MB
>
> Peter
OK.
The thing was (that is, when I saw this first time) was when
I was monitoring the size of a particual file (a backup saveset)
that was growing. When the size in *blocks* went over 7 chars
the size in blocks changed to "********" just as expected.
What I found wierd was that the size in bytes also switched
to "*******" even if the length of the (expected) output was
the same. That is the NN.NNGB format.
Here is a reproducer command file :
$ create a_file.txt
sadfasfasfasdf
$!
$! Create and run dir on a file with 7 chars
$! size in blocks :
$!
$ copy/all=9000000 a_file.txt a_large_file.txt
$ set proc/unit=block
$ directory/size=All a_large_file.txt
$ set proc/unit=byte
$ directory/size=All a_large_file.txt
$ delete a_large_file.txt.*
$!
$! Create and run dir on a file with > 7 chars
$! size in blocks :
$!
$ copy/all=10000000 a_file.txt a_large_file.txt
$ set proc/unit=block
$ directory/size=All a_large_file.txt
$ set proc/unit=byte
$ directory/size=All a_large_file.txt
$ delete a_file.txt.*
$ delete a_large_file.txt.*
$
I have stripped the summary and header lines below.
On a 8.2 system this gives :
A_LARGE_FILE.TXT;1 1/9000037
A_LARGE_FILE.TXT;1 0.50KB/4.29GB <<== OK !
A_LARGE_FILE.TXT;1 1/*******
A_LARGE_FILE.TXT;1 1/******* <<== ???
On a 8.3 system this gives :
A_LARGE_FILE.TXT;1 1/9000096
A_LARGE_FILE.TXT;1 0.50KB/4.29GB <<== OK !
A_LARGE_FILE.TXT;1 1/*******
A_LARGE_FILE.TXT;1 0.50KB/4.76GB <<== OK !
Note the difference in the last output.
Jan-Erik.
More information about the Info-vax
mailing list