Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/fstab/fstabhandling.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | |||||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | QString _k_deviceNameForMountpoint(const QString &source, const QString &fstype, | 121 | QString _k_deviceNameForMountpoint(const QString &source, const QString &fstype, | ||
122 | const QString &mountpoint) | 122 | const QString &mountpoint) | ||
123 | { | 123 | { | ||
124 | if (fstype.startsWith("fuse.") || | 124 | if (fstype.startsWith("fuse.") || | ||
125 | fstype == QLatin1String("overlay")) { | 125 | fstype == QLatin1String("overlay")) { | ||
126 | return fstype + mountpoint; | 126 | return fstype + mountpoint; | ||
127 | } else if (fstype == QLatin1String("cifs")) { | ||||
anthonyfieroni: use `QLatin1String` | |||||
128 | // append mountpoint to samba device name as they don't contain it in getmntent return | ||||
129 | // and this is needed to differentiate different mounts with same source | ||||
130 | return source + QLatin1Char(':') + mountpoint; | ||||
127 | } | 131 | } | ||
ahmadsamir: Nitpick: QLatin1Char. | |||||
128 | return source; | 132 | return source; | ||
129 | } | 133 | } | ||
130 | 134 | | |||
131 | void Solid::Backends::Fstab::FstabHandling::_k_updateFstabMountPointsCache() | 135 | void Solid::Backends::Fstab::FstabHandling::_k_updateFstabMountPointsCache() | ||
132 | { | 136 | { | ||
133 | if (globalFstabCache->localData().m_fstabCacheValid) { | 137 | if (globalFstabCache->localData().m_fstabCacheValid) { | ||
134 | return; | 138 | return; | ||
135 | } | 139 | } | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |
use QLatin1String