Lines Matching defs:g_fstab
33 static Fstab *g_fstab = nullptr;
51 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
68 if (g_fstab != nullptr) {
69 ReleaseFstab(g_fstab);
70 g_fstab = nullptr;
73 if ((g_fstab = ReadFstabFromFile(fstabFile.c_str(), false)) == nullptr) {
79 for (FstabItem *item = g_fstab->head; item != nullptr; item = item->next) {
96 if (g_fstab == nullptr) {
97 LOG(ERROR) << "fstab is not loaded, g_fstab is null.";
101 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
195 if (g_fstab == nullptr) {
196 LOG(ERROR) << "fstab is not loaded, g_fstab is null.";
200 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
256 if (g_fstab == nullptr) {
257 LOG(ERROR) << "fstab is not loaded, g_fstab is null.";
261 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
301 if (g_fstab == NULL || g_fstab->head == NULL) {
306 for (const FstabItem *item = g_fstab->head; item != nullptr; item = item->next) {
343 if (g_fstab != nullptr) {
344 FstabItem *item = FindFstabItemForMountPoint(*g_fstab, mountPoint.c_str());
355 if (mountPoint.empty() || g_fstab == nullptr) {
356 LOG(ERROR) << "mountPoint or g_fstab empty error.";
359 for (FstabItem *item = g_fstab->head; item != NULL; item = item->next) {