Lines Matching refs:rc
282 int rc = -1; in Mount() local
302 if ((rc = mount(source, target, fsType, flags, data)) != 0) { in Mount()
303 BEGET_WARNING_CHECK(errno != EBUSY, rc = 0, "Mount %s to %s busy, ignore", source, target); in Mount()
305 return rc; in Mount()
412 int rc = Mount(item->deviceName, item->mountPoint, item->fsType, mountFlags, fsSpecificData); in MountOneItem() local
413 if (rc != 0) { in MountOneItem()
418 rc = 0; in MountOneItem()
423 return rc; in MountOneItem()
443 int rc = 0; in CheckRequiredAndMount() local
453 rc = HvbDmVeritySetUp(item); in CheckRequiredAndMount()
454 if (rc != 0) { in CheckRequiredAndMount()
455 BEGET_LOGE("set dm_verity err, ret = 0x%x", rc); in CheckRequiredAndMount()
456 return rc; in CheckRequiredAndMount()
459 rc = MountOneItem(item); in CheckRequiredAndMount()
463 rc = MountOneItem(item); in CheckRequiredAndMount()
466 return rc; in CheckRequiredAndMount()
476 int rc = -1; in MountAllWithFstab() local
480 rc = HvbDmVerityinit(fstab); in MountAllWithFstab()
481 if (rc != 0) { in MountAllWithFstab()
482 BEGET_LOGE("set dm_verity init, ret = 0x%x", rc); in MountAllWithFstab()
483 return rc; in MountAllWithFstab()
488 rc = CheckRequiredAndMount(item, required); in MountAllWithFstab()
489 if (required && (rc < 0)) { // Init fail to mount in the first stage and exit directly. in MountAllWithFstab()
499 return rc; in MountAllWithFstab()
513 int rc = MountAllWithFstab(fstab, required); in MountAllWithFstabFile() local
516 return rc; in MountAllWithFstabFile()
531 int rc = -1; in UmountAllWithFstabFile() local
543 rc = umount(item->mountPoint); in UmountAllWithFstabFile()
544 if (rc == -1) { in UmountAllWithFstabFile()
554 return rc; in UmountAllWithFstabFile()