Operating System - HP-UX
1745916 Members
4364 Online
108723 Solutions
New Discussion

Can statvfs64 call be used for getting the file sytem details?

 
PrasannaKumari
Contributor

Can statvfs64 call be used for getting the file sytem details?

We are at present using the "statvfs" call in our code. But it cannot handle the file system details that have a large size. Is it fine to use statvfs64 call. It is given that it is a not a POSIX standard and may be removed in the future.

 

Is there any other way of handling this issue and how safe is it?

1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: Can statvfs64 call be used for getting the file sytem details?

Hi:

 

Try using 'fstatvfs64()' instead.  From the manpages:

 

"The fstatvfs64() function is indentical to fstatvfs() except that fstatvfs64() returns file status in a struct statvfs64 instead of a struct statvfs."

 

Regards!

 

...JRF...