Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-09-12 17:14:14


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Beman Dawes
> Sent: Monday, September 12, 2005 2:20 PM
> To: boost-users_at_[hidden]
> Subject: [BULK] Re: [Boost-users] [BULK] [filesystem]
> function to determineavailable space
> Importance: Low
>
> "Sohail Somani" <s.somani_at_[hidden]> wrote in message
> news:1C1EBEF8DBACDC439D038EA051674EC709C5D4_at_xbox.financialcad.com...
> >> -----Original Message-----
> >> From: boost-users-bounces_at_[hidden]
> >> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Beman Dawes
> >> Sent: Monday, September 12, 2005 10:23 AM
> >> To: boost-users_at_[hidden]
> >> Subject: [BULK] [Boost-users] [filesystem] function to determine
> >> available space
> >> Importance: Low
> >>
> >>
> >> 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 );
> >>
> >> Comments?
> >
> > Standard unit of measure? Bytes? Megabytes? Gigabytes?
>
> Bytes. Individual bytes still matter in some applications.

What about using a type that guarantees a certain amount instead of just
"max" (which may vary)? Or equivalently, are we guaranteed that
uintmax_t can hold, say one TB, on any platform that boost supports?


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