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) | 114 | if (fstype == "nfs" | |||
---|---|---|---|---|---|
119 | return true; | 119 | return true; | ||
120 | } | 120 | } | ||
121 | return false; | 121 | return false; | ||
122 | } | 122 | } | ||
123 | 123 | | |||
124 | bool _k_isFstabSupportedLocalFileSystem(const QString &fstype) | 124 | bool _k_isFstabSupportedLocalFileSystem(const QString &fstype) | ||
125 | { | 125 | { | ||
126 | if (fstype == "fuse.encfs" || | 126 | if (fstype == "fuse.encfs" || | ||
127 | fstype == "fuse.cryfs") { | 127 | fstype == "fuse.cryfs" || | ||
128 | fstype == "overlay") { | ||||
128 | return true; | 129 | return true; | ||
129 | } | 130 | } | ||
130 | return false; | 131 | return false; | ||
131 | } | 132 | } | ||
132 | 133 | | |||
133 | QString _k_deviceNameForMountpoint(const QString &source, const QString &fstype, | 134 | QString _k_deviceNameForMountpoint(const QString &source, const QString &fstype, | ||
134 | const QString &mountpoint) | 135 | const QString &mountpoint) | ||
135 | { | 136 | { | ||
136 | if (fstype.startsWith("fuse.")) { | 137 | if (fstype.startsWith("fuse.") || | ||
138 | fstype == QLatin1String("overlay")) { | ||||
137 | return fstype + mountpoint; | 139 | return fstype + mountpoint; | ||
138 | } | 140 | } | ||
139 | return source; | 141 | return source; | ||
140 | } | 142 | } | ||
141 | 143 | | |||
142 | void Solid::Backends::Fstab::FstabHandling::_k_updateFstabMountPointsCache() | 144 | void Solid::Backends::Fstab::FstabHandling::_k_updateFstabMountPointsCache() | ||
143 | { | 145 | { | ||
144 | if (globalFstabCache->m_fstabCacheValid) { | 146 | if (globalFstabCache->m_fstabCacheValid) { | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |