Api call for free disk space
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Api call for free disk space




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Api call for free disk space  
Adrian


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-07 06:19 PM

Anyone know if there is a posix/portablish api call for getting free
space from a disk?


TIA

Adrian






[ Post a follow-up to this message ]



    Re: Api call for free disk space  
Eric Sosman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-07 06:19 PM

Adrian wrote On 05/25/07 10:39,:
> Anyone know if there is a posix/portablish api call for getting free
> space from a disk?

What is "free" space on a disk?

If you want the free space in a file system, try
statvfs().  It's part of SUS and so should be widely
available, but the SUS warns that some returned data
may be meaingless on some platforms and file systems.

--
Eric.Sosman@sun.com





[ Post a follow-up to this message ]



    Re: Api call for free disk space  
Adrian


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-07 06:19 PM

On May 25, 9:15 am, Eric Sosman <Eric.Sos...@sun.com> wrote:
>     What is "free" space on a disk?
True :-) but you knew what I meant

>     If you want the free space in a file system, try
> statvfs().  It's part of SUS and so should be widely
> available, but the SUS warns that some returned data
> may be meaingless on some platforms and file systems.
Perfect. Its on the flavors I need it on






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:47 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register