| 215 | } |
| 216 | |
| 217 | auto MountTable::IsMountPoint(const char* path) -> bool { |
| 218 | if (path == nullptr) { |
| 219 | return false; |
| 220 | } |
| 221 | |
| 222 | for (size_t i = 0; i < kMaxMounts; ++i) { |
| 223 | if (mounts_[i].active && mounts_[i].mount_path != nullptr && |
| 224 | strcmp(mounts_[i].mount_path, path) == 0) { |
| 225 | return true; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | return false; |
| 230 | } |
| 231 | |
| 232 | auto MountTable::GetRootMount() -> MountPoint* { return root_mount_; } |
| 233 |