Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/fstab/fstabhandling.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 266 | #if GETMNTINFO_USES_STATVFS | |||
---|---|---|---|---|---|
267 | struct statvfs *mounted; | 267 | struct statvfs *mounted; | ||
268 | #else | 268 | #else | ||
269 | struct statfs *mounted; | 269 | struct statfs *mounted; | ||
270 | #endif | 270 | #endif | ||
271 | 271 | | |||
272 | int num_fs = getmntinfo(&mounted, MNT_NOWAIT); | 272 | int num_fs = getmntinfo(&mounted, MNT_NOWAIT); | ||
273 | 273 | | |||
274 | for (int i = 0; i < num_fs; i++) { | 274 | for (int i = 0; i < num_fs; i++) { | ||
275 | #ifdef __osf__ | | |||
276 | QString type = QFile::decodeName(mnt_names[mounted[i].f_type]); | | |||
277 | #else | | |||
278 | QString type = QFile::decodeName(mounted[i].f_fstypename); | 275 | QString type = QFile::decodeName(mounted[i].f_fstypename); | ||
279 | #endif | | |||
280 | if (_k_isFstabNetworkFileSystem(type, QString())) { | 276 | if (_k_isFstabNetworkFileSystem(type, QString())) { | ||
281 | const QString device = QFile::decodeName(mounted[i].f_mntfromname); | 277 | const QString device = QFile::decodeName(mounted[i].f_mntfromname); | ||
282 | const QString mountpoint = QFile::decodeName(mounted[i].f_mntonname); | 278 | const QString mountpoint = QFile::decodeName(mounted[i].f_mntonname); | ||
283 | globalFstabCache->m_mtabCache.insert(device, mountpoint); | 279 | globalFstabCache->m_mtabCache.insert(device, mountpoint); | ||
284 | } | 280 | } | ||
285 | } | 281 | } | ||
286 | 282 | | |||
287 | #elif defined(_AIX) | 283 | #elif defined(_AIX) | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |