[Interest] Getting the list of mounted network volumes

Marc Ferland ferlandm at sonatest.com
Thu Aug 30 19:37:54 CEST 2012


Stephen Chu <stephen at ju-ju.com> writes:

> Hi List.
>
> Is there a way to get a list of currently mounted network volumes? Or 
> just mounted volumes?
>
> I thought QDir::drives() is it but it returns only the root (/) on Mac 
> and drive letters on Windows. I am looking to get the names of the 
> server volumes.
>
I personally use udisks with QtDBus. Works well for block devices but
does not return nfs mounts for example. For this you'll have to parse
the content of /proc/mount.

Marc



More information about the Interest mailing list