Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/fstab/fstabdevice.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 44 | if (m_device.startsWith("//")) { | |||
---|---|---|---|---|---|
47 | m_storageType = StorageType::NetworkShare; | 47 | m_storageType = StorageType::NetworkShare; | ||
48 | } else if (fstype.startsWith("nfs")) { | 48 | } else if (fstype.startsWith("nfs")) { | ||
49 | m_vendor = m_device.left(m_device.indexOf(":/")); | 49 | m_vendor = m_device.left(m_device.indexOf(":/")); | ||
50 | m_product = m_device.mid(m_device.indexOf(":/") + 2); | 50 | m_product = m_device.mid(m_device.indexOf(":/") + 2); | ||
51 | if (m_product.isEmpty()) { | 51 | if (m_product.isEmpty()) { | ||
52 | m_product = QStringLiteral("/"); | 52 | m_product = QStringLiteral("/"); | ||
53 | } | 53 | } | ||
54 | m_storageType = StorageType::NetworkShare; | 54 | m_storageType = StorageType::NetworkShare; | ||
55 | } else if (fstype.startsWith("fuse.")) { | 55 | } else if (fstype.startsWith("fuse.") || | ||
56 | fstype == QLatin1String("overlay")) { | ||||
56 | m_vendor = fstype; | 57 | m_vendor = fstype; | ||
57 | m_product = m_device.mid(m_device.indexOf(fstype) + fstype.length()); | 58 | m_product = m_device.mid(m_device.indexOf(fstype) + fstype.length()); | ||
58 | QString home = QDir::homePath(); | 59 | QString home = QDir::homePath(); | ||
59 | if (m_product.startsWith(home)) { | 60 | if (m_product.startsWith(home)) { | ||
60 | m_product = "~" + m_product.mid(home.length()); | 61 | m_product = "~" + m_product.mid(home.length()); | ||
61 | } | 62 | } | ||
62 | if ((fstype == QLatin1String("fuse.encfs")) || | 63 | if ((fstype == QLatin1String("fuse.encfs")) || | ||
63 | (fstype == QLatin1String("fuse.cryfs"))) { | 64 | (fstype == QLatin1String("fuse.cryfs"))) { | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |