Lines Matching refs:rv
81 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 ALOGI("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 ALOGE("Error while running e2fsck: %d", rv); in do_fsck()
133 ALOGI("e2fsck succeeded (exit code: %d)", rv); in do_fsck()
141 int rv; in process_ext2_image() local
156 if ((rv = exec_cmd(TUNE2FS_BIN, "-C", "1", dst, NULL)) < 0) in process_ext2_image()
158 if (rv) { in process_ext2_image()
159 ALOGE("Error while running tune2fs: %d", rv); in process_ext2_image()
165 if ((rv = exec_cmd(RESIZE2FS_BIN, "-F", dst, NULL)) < 0) in process_ext2_image()
167 if (rv) { in process_ext2_image()
168 ALOGE("Error while running resize2fs: %d", rv); in process_ext2_image()
178 if ((rv = exec_cmd(TUNE2FS_BIN, "-j", dst, NULL)) < 0) in process_ext2_image()
180 if (rv) { in process_ext2_image()
181 ALOGE("Error while running tune2fs: %d", rv); in process_ext2_image()
206 int rv; in process_image_node() local
266 rv = exec_cmd(MKE2FS_BIN, "-L", vol_lbl, journal_opts, dest_part, NULL); in process_image_node()
267 if (rv < 0) in process_image_node()
269 else if (rv > 0) { in process_image_node()
270 ALOGE("Error while running mke2fs: %d", rv); in process_image_node()