Boost logo

Boost Users :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-09-12 16:17:29


"Pavel Vozenilek" <pavel_vozenilek_at_[hidden]> wrote in message
news:dg4gv5$mji$1_at_sea.gmane.org...
>
> "Beman Dawes" wrote:
>
>> I'm planning to add a filesystem function to determine available disk
>> space. Perhaps something like:
>>
>> struct space_status
>> {
>> boost::uintmax_t available; // free space available to user
>> boost::uintmax_t total; // total space on volume
>> };
>>
>> space_status filesystem_space( const path & p );
>>
>
> The single uintmax_t may not be able to capture
> all those free gigabytes. Better use two values.

Hum... Are there any systems anymore that support disk drives that don't
have 64-bit uintmax_t?

> The name may be "available_disk_space".

But lots of file systems aren't disks. Flash memory for example.

Thanks,

--Beman


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net