HP3000-L Archives

March 2005, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Vance, Jeff H (Cupertino)" <[log in to unmask]>
Reply To:
Vance, Jeff H (Cupertino)
Date:
Fri, 25 Mar 2005 16:37:19 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
...
> 1. For items with MB (megabytes), what is the definition of megabyte?
>     1000*1000, 1000*1024, 1024*1024, ???

Good question. 2^20.
 
> 2. All items with MB are type int.
>     Why are the items with Sectors type string instead of int?

We can hold megabytes in a signed 32 bit CI integer variable, but not
sectors.  So, if you want to see sectors (which there has been zero
votes for and one vote against) we need to return the result as a
numeric string.  To be useful for compares you'd then need to right
justify the string the appropriate number of places.
 
> 3. The output for lists of names seems a bit odd to me.
>            "total/name1 name2 name3"
> 
>     Most list items also have a return-count item.
>        VolumeSets
>         NumVS           int     total
>         VolSets         string  "total/name1 name2"
> 
>        VolumeSetVolumes
>         NumVSVols       int
>         VSVols          string
> 
>        VolumeSetClasses
>         NumVolClass     int
>         VolClasses      string
> 
>        ClassVolumes
>         NumVolClassVols int
>         VolClassVols    string
> 
>        VolumeClasses
>         ???             <<NONE>>
>         MemberVolClasses string
> 
>     Its just a matter of string parsing, but except for the last case
>     (wherein another item could be created for that count),
>     I wonder if the string ought to be just the name lists without
>     the count:   "name1 name2 name3 name4 ..."
>     so that no special parsing needs be done to strip off the count.

We could do that. This format, "total/name1 ... nameN" is also used by
the PINFO function to hold the list of children processes.  I added
total to the string so that the caller wouldn't need to call the
function twice, and since there is no locking available, know the count
does not guarantee that there are really that many tokens in the 2nd
call.  The format I choose is an accurate snapshot -- though the string
variable may not be large enough to hold all matches.  In this case the
total value in the string is correct but the token count of the same
string will be smaller.

Thanks for your comments.  Can we eliminate sectors output?

 Jeff

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2