- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: discriminate between legacy and agile
Operating System - HP-UX
1756575
Members
3631
Online
108848
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
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
01-07-2010 03:08 AM
01-07-2010 03:08 AM
discriminate between legacy and agile
Hello,
I need a way to understand if the disk returned by the pstat_getdisk API follows the agile or legacy naming convention. Is there a way to do this? For instance, if the major number for agile disks is always the same, I could use it to discriminate.
Thank you.
I need a way to understand if the disk returned by the pstat_getdisk API follows the agile or legacy naming convention. Is there a way to do this? For instance, if the major number for agile disks is always the same, I could use it to discriminate.
Thank you.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2010 04:05 PM
01-07-2010 04:05 PM
Re: discriminate between legacy and agile
Hi Alice,
One way of doing that would be using the "libIO" library APIs provided by default on the sytem:
For each hw path that you get from pstat_getdisk():
call io_str_to_hw_path() to get the hw_path_t representation --> then call io_hw_path_to_node() to get the token corresponding to the hw_path_t --> then call io_is_legacy_token() which would return "IO_TOKEN_NEW" / "IO_TOKEN_LEGACY" based on the type of the device
Just do a "man libio" on the system to get the specifics of each call.
Regards,
Vinay
One way of doing that would be using the "libIO" library APIs provided by default on the sytem:
For each hw path that you get from pstat_getdisk():
call io_str_to_hw_path() to get the hw_path_t representation --> then call io_hw_path_to_node() to get the token corresponding to the hw_path_t --> then call io_is_legacy_token() which would return "IO_TOKEN_NEW" / "IO_TOKEN_LEGACY" based on the type of the device
Just do a "man libio" on the system to get the specifics of each call.
Regards,
Vinay
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