Regarding enumerating mount points, you may want to look at src/bin/df.cpp
. It uses BVolume to retrieve all the info needed from a dev_t using the published APIs, which may be simpler than your current approach.
1 Like