Bug 306937

Summary: Solid::StorageAccess can't handle btrfs subvolumes
Product: [Frameworks and Libraries] solid Reporter: Joris Guisson <joris.guisson>
Component: generalAssignee: Alex Fiestas <afiestas>
Status: RESOLVED WAITINGFORINFO    
Severity: normal    
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Joris Guisson 2012-09-17 14:42:10 UTC
Setup a btrfs subvolume on a btrfs partition and mount it on some directory. Then compile and run this program:

#include <iostream>
#include <solid/device.h>
#include <solid/storageaccess.h>

int main(int argc, char **argv) 
{
	QList<Solid::Device> devs = Solid::Device::listFromType(Solid::DeviceInterface::StorageAccess);
	foreach (Solid::Device dev,devs)
	{
		Solid::StorageAccess* sa = dev.as<Solid::StorageAccess>();
		if(!sa->filePath().isEmpty())
			std::cout << "StorageAccess: " << sa->filePath().toLocal8Bit().data() << std::endl;
	}
    return 0;
}

The result is that the  mount point of the mounted btrfs subvolume is not printed to the standard output. So it seems that btrfs subvolumes are not handled wel in solid.

This problem is the root cause of https://bugs.kde.org/show_bug.cgi?id=306825

Reproducible: Always
Comment 1 Alex Fiestas 2013-02-24 22:01:14 UTC
Are you using UDisk1 or Udisk2?
Can you test with udisk2?

Thanks !
Comment 2 Alex Fiestas 2013-07-28 20:46:37 UTC
Closing the thread for lack of activity.

Please, please! if udisk2 is still not supporting btrfs or you think this is a KDE issue feel free to reopen the bug.

Thanks for reporting !