Commit d92ebaf1 authored by Tijl Coosemans's avatar Tijl Coosemans

Initialise mountPoints for newly added filesystems other than ZFS.

GVfs looks at the mount point of a volume, as returned by libudisks2, to
determine if it's a system volume that should be ignored.
parent 2842d655fa0f
......@@ -71,6 +71,20 @@ void ObjectManager::filesystemAdded(Block* b, QString fs, const ZFSInfo* zfsInfo
b->hasNoDrive = true;
}
else
{
for (const QStorageInfo &storage : QStorageInfo::mountedVolumes())
{
if(storage.isValid() && storage.isReady())
{
if(!storage.device().compare(b->device()))
{
bfs->mountPoints << storage.rootPath().toLocal8Bit();
break;
}
}
}
}
}
void ObjectManager::addBlock(QString dev)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment