Operating System - HP-UX
1834479 Members
3523 Online
110067 Solutions
New Discussion

Re: How to get Disk partition information By C programming.

 
shivakumara
Occasional Advisor

How to get Disk partition information By C programming.

Hi all,

I wanted to get block device and partition information by C programming. For this which system call I should use? And also which structure will hold this information. Actually In Solaris we have kstat structure and with this we can get the information which we required. Can you tell me the relevant structure in HP-UX.

In solaris
sd0 - disk
sd0,a - Partition
sd0,b - partition
sd31 - disk
sd31,a - partition

The relevent outut I need to get in HP-UX.

-chandru
1 REPLY 1
Procnus
Frequent Advisor

Re: How to get Disk partition information By C programming.

A place to start would be the pstat_getdisk man page and the /usr/include/sys/pstat.h file.

Cheers
Steven