Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 3 of 3) sorted by relevance

/bootable/diskinstaller/
Dinstaller.c81 int rv; in exec_cmd() local
106 rv = system(outbuf); in exec_cmd()
108 if (rv < 0) { in exec_cmd()
112 rv = WEXITSTATUS(rv); in exec_cmd()
113 LOGI("Done executing %s (%d)", outbuf, rv); in exec_cmd()
114 return rv; in exec_cmd()
121 int rv; in do_fsck() local
126 if ((rv = exec_cmd(E2FSCK_BIN, "-C 0", opts, dst, NULL)) < 0) in do_fsck()
128 if (rv >= 4) { in do_fsck()
129 LOGE("Error while running e2fsck: %d", rv); in do_fsck()
[all …]
/bootable/recovery/mtdutils/
Dmtdutils.c194 int rv = -1; in mtd_mount_partition() local
198 rv = mount(devname, mount_point, filesystem, flags, NULL); in mtd_mount_partition()
200 if (read_only || rv < 0) { in mtd_mount_partition()
201 rv = mount(devname, mount_point, filesystem, flags | MS_RDONLY, 0); in mtd_mount_partition()
202 if (rv < 0) { in mtd_mount_partition()
210 if (rv >= 0) { in mtd_mount_partition()
215 rv = stat(mount_point, &st); in mtd_mount_partition()
216 if (rv < 0) { in mtd_mount_partition()
217 return rv; in mtd_mount_partition()
222 rv = chmod(mount_point, new_mode); in mtd_mount_partition()
[all …]
/bootable/diskinstaller/libdiskconfig/
Ddiskconfig.c240 int rv; in sync_ptable() local
249 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable()
435 int rv; in apply_disk_config() local
442 if ((rv = wlist_commit(fd, wr_lst, test)) >= 0) in apply_disk_config()
443 rv = test ? 0 : sync_ptable(fd); in apply_disk_config()
447 return rv; in apply_disk_config()