ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #09986
Help determining if a device is internal storage
We've been trying to improve the storage calculations in system-settings,
which uses StorageInfo from QtSystems.
We have a solution that works great on krillin, but has trouble with mako
because of the way the partitions are handled and the loop mounts.
Specifically looking at /home.
The way QtSystems tries to guess if an MMC device is internal or removable
is by looking for MMC_TYPE=MMC. This isn't there on mako, because even
though the device path looks like MMC, it's actually loop mounted.
Does anyone have suggestions for reliably detecting if the device is
internal storage?
Thanks,
Ken