- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: F$GETDVI(<>,"DEVLOCKNAM") strangeness on V7.3-...
Operating System - OpenVMS
1752587
Members
4008
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 06:56 AM
тАО02-01-2006 06:56 AM
It appears that one or more patches cause F$GETDVI to return different types of values.
One one system the value returned is a decent and orderly string with the volume label used for the lock name.
On several other systems with most of the latest patch kits installed, the lexical returns a hexadecimal string with a bunch of "00"s and all the characters when decoded are in reverse order.
What kind of values do you get on your systems?
Which behavior is the "correct" one?
Robert
One one system the value returned is a decent and orderly string with the volume label used for the lock name.
On several other systems with most of the latest patch kits installed, the lexical returns a hexadecimal string with a bunch of "00"s and all the characters when decoded are in reverse order.
What kind of values do you get on your systems?
Which behavior is the "correct" one?
Robert
Master you were right about 1 thing -- the negotiations were SHORT!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 07:23 AM
тАО02-01-2006 07:23 AM
Solution
This is a weird one for which I take full credit and/or blame, depending on your point of view!
While doing some $GETDVI work, I noticed that f$getdvi returned a hex string for dvi$_devlocknam. In looking back, I found that for whatever reason, that was the behaviour since its introduction in the early 80's. SYS$GETDVI returns "a decent and orderly string". I "fixed" f$getdvi to return a similar string for V8.2 and for V7.3-2 in one of the SYS/DCL kits (it would take both kits to cause the change).
After the fact, however, we decided that while bizarre and unexpected, we should restore the older behaviour in case there was anyone who had noticed the weird output and had coded around it (there was at least one person in HP who was annoyed that I had "fixed" it). There was also the issue of compatibility within a cluster with VAXes, where the hex string would be returned.
So, a later V7.3-2 SYS/DCL kit will restore the older, weird behaviour. I'm not sure which one, but certainly the latest SYS/DCL kits will return the hex string format.
Note that LIB$GETDVI will follow the F$GETDVI behaviour and not the SYS$GETDVI behaviour, although it's possible that no LIBRTL kits shipped with my "fixed" version.
It's my opinion that my initial change should have been retained, but I was in the minority.
Sorry!
-- Rob
While doing some $GETDVI work, I noticed that f$getdvi returned a hex string for dvi$_devlocknam. In looking back, I found that for whatever reason, that was the behaviour since its introduction in the early 80's. SYS$GETDVI returns "a decent and orderly string". I "fixed" f$getdvi to return a similar string for V8.2 and for V7.3-2 in one of the SYS/DCL kits (it would take both kits to cause the change).
After the fact, however, we decided that while bizarre and unexpected, we should restore the older behaviour in case there was anyone who had noticed the weird output and had coded around it (there was at least one person in HP who was annoyed that I had "fixed" it). There was also the issue of compatibility within a cluster with VAXes, where the hex string would be returned.
So, a later V7.3-2 SYS/DCL kit will restore the older, weird behaviour. I'm not sure which one, but certainly the latest SYS/DCL kits will return the hex string format.
Note that LIB$GETDVI will follow the F$GETDVI behaviour and not the SYS$GETDVI behaviour, although it's possible that no LIBRTL kits shipped with my "fixed" version.
It's my opinion that my initial change should have been retained, but I was in the minority.
Sorry!
-- Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 07:59 AM
тАО02-01-2006 07:59 AM
Re: F$GETDVI(<>,"DEVLOCKNAM") strangeness on V7.3-2
Rob,
Thanks for the detailed explanation -- I just today posted a procedure to dcl.OpenVMS.org which prints all F$GETDVI items. I had just fixed up the code to interpret the hexified string and found a couple of systems that didn't work on.
I'm glad there's such an easy explanation :-)
Too bad the people affected couldn't just live with having to detect which format the result was in.
I'll post another version that will be able to display from either form of result.
Robert
Thanks for the detailed explanation -- I just today posted a procedure to dcl.OpenVMS.org which prints all F$GETDVI items. I had just fixed up the code to interpret the hexified string and found a couple of systems that didn't work on.
I'm glad there's such an easy explanation :-)
Too bad the people affected couldn't just live with having to detect which format the result was in.
I'll post another version that will be able to display from either form of result.
Robert
Master you were right about 1 thing -- the negotiations were SHORT!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2006 12:27 AM
тАО02-02-2006 12:27 AM
Re: F$GETDVI(<>,"DEVLOCKNAM") strangeness on V7.3-2
Robert's DCL procedure is at
http://dcl.openvms.org/stories.php?story=06/02/01/2480164
http://dcl.openvms.org/stories.php?story=06/02/01/2480164
____________________
Purely Personal Opinion
Purely Personal Opinion
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP