Lines Matching refs:g_fstab
33 static Fstab *g_fstab = nullptr; variable
50 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str()); in GetMountStatusForPath()
66 if (g_fstab != nullptr) { in LoadFstab()
67 ReleaseFstab(g_fstab); in LoadFstab()
68 g_fstab = nullptr; in LoadFstab()
71 if ((g_fstab = ReadFstabFromFile(fstabFile.c_str(), false)) == nullptr) { in LoadFstab()
77 for (FstabItem *item = g_fstab->head; item != nullptr; item = item->next) { in LoadFstab()
94 if (g_fstab == nullptr) { in UmountForPath()
99 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str()); in UmountForPath()
208 if (g_fstab == nullptr) { in MountForPath()
213 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str()); in MountForPath()
269 if (g_fstab == nullptr) { in FormatPartition()
274 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str()); in FormatPartition()
314 if (g_fstab == NULL || g_fstab->head == NULL) { in SetupPartitions()
319 for (const FstabItem *item = g_fstab->head; item != nullptr; item = item->next) { in SetupPartitions()
356 if (g_fstab != nullptr) { in GetBlockDeviceByMountPoint()
357 FstabItem *item = FindFstabItemForMountPoint(*g_fstab, mountPoint.c_str()); in GetBlockDeviceByMountPoint()
368 if (mountPoint.empty() || g_fstab == nullptr) { in GetBlockDevicesByMountPoint()
372 for (FstabItem *item = g_fstab->head; item != NULL; item = item->next) { in GetBlockDevicesByMountPoint()