Lines Matching refs:item
51 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
52 if (item == nullptr) {
55 return GetMountStatusForMountPoint(item->mountPoint);
79 for (FstabItem *item = g_fstab->head; item != nullptr; item = item->next) {
80 LOG(DEBUG) << "\tDevice: " << item->deviceName;
81 LOG(DEBUG) << "\tMount point : " << item->mountPoint;
82 LOG(DEBUG) << "\tFs type : " << item->fsType;
83 LOG(DEBUG) << "\tMount options: " << item->mountOptions;
101 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
102 if (item == nullptr) {
103 LOG(ERROR) << "Cannot find fstab item for " << path << " to umount.";
108 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint);
117 int ret = umount(item->mountPoint);
119 LOG(ERROR) << "Umount " << item->mountPoint << "failed: " << errno;
200 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
202 if (item == nullptr) {
203 LOG(ERROR) << "Cannot find fstab item for " << path << " to mount.";
208 MountStatus rc = GetMountStatusForMountPoint(item->mountPoint);
216 ret = MountOneItem(item);
261 FstabItem *item = FindFstabItemForPath(*g_fstab, path.c_str());
262 if (item == nullptr) {
263 LOG(ERROR) << "Cannot find fstab item for " << path << " to format.";
267 if (strcmp(item->mountPoint, "/") == 0) {
272 if (!IsSupportedFilesystem(item->fsType)) {
273 LOG(ERROR) << "Try to format " << item->mountPoint << " with unsupported file system type: " << item->fsType;
283 ErasePartition(item->deviceName);
286 int ret = DoFormat(item->deviceName, item->fsType);
306 for (const FstabItem *item = g_fstab->head; item != nullptr; item = item->next) {
307 std::string mountPoint(item->mountPoint);
308 std::string fsType(item->fsType);
344 FstabItem *item = FindFstabItemForMountPoint(*g_fstab, mountPoint.c_str());
345 if (item != NULL) {
346 blockDevice = item->deviceName;
359 for (FstabItem *item = g_fstab->head; item != NULL; item = item->next) {
360 if ((item->mountPoint != NULL) && item->mountPoint == mountPoint) {
361 blockDevices.push_back(item->deviceName);