Bug 306937 - Solid::StorageAccess can't handle btrfs subvolumes
Summary: Solid::StorageAccess can't handle btrfs subvolumes
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.8.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Fiestas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 14:42 UTC by Joris Guisson
Modified: 2013-07-28 20:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 !