Boost logo

Boost :

Subject: Re: [boost] [Filesystem] Add features to list all mount paths, determine mount path of a path
From: Daniel Trebbien (dtrebbien_at_[hidden])
Date: 2010-07-13 14:37:38


> I don't think that basic_path should have a member to get the mount
> path, because that's context-dependent. I feel that anything which
> looks at the filesystem should be in a non-member function. Can mount
> path be done more efficiently than just iterating through the known
> mount points?

On Windows, I think that the `GetVolumePathName` function
(http://msdn.microsoft.com/en-us/library/aa364996.aspx) can be used to
obtain the mount path without iterating over all, current mount
points. I don't know about Linux, though. Linux might be tricky
because a running program might be `chroot`ed.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk