Lines Matching refs:status
406 int status; in exec_cmd() local
407 waitpid(child, &status, 0); in exec_cmd()
408 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in exec_cmd()
409 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd()
411 return WEXITSTATUS(status); in exec_cmd()
466 if (auto status = exec_cmd(mke2fs_args); status != 0) { in FormatFn() local
467 LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; in FormatFn()
471 if (auto status = exec_cmd({ "/system/bin/e2fsdroid", "-e", "-a", mount_point, location }); in FormatFn() local
472 status != 0) { in FormatFn()
473 LOG(ERROR) << name << ": e2fsdroid failed (" << status << ") on " << location; in FormatFn()
490 if (auto status = exec_cmd(f2fs_args); status != 0) { in FormatFn() local
491 LOG(ERROR) << name << ": make_f2fs failed (" << status << ") on " << location; in FormatFn()
495 if (auto status = exec_cmd({ "/system/bin/sload_f2fs", "-t", mount_point, location }); in FormatFn() local
496 status != 0) { in FormatFn()
497 LOG(ERROR) << name << ": sload_f2fs failed (" << status << ") on " << location; in FormatFn()
682 int status; in RunProgramFn() local
683 waitpid(child, &status, 0); in RunProgramFn()
684 if (WIFEXITED(status)) { in RunProgramFn()
685 if (WEXITSTATUS(status) != 0) { in RunProgramFn()
686 LOG(ERROR) << "run_program: child exited with status " << WEXITSTATUS(status); in RunProgramFn()
688 } else if (WIFSIGNALED(status)) { in RunProgramFn()
689 LOG(ERROR) << "run_program: child terminated by signal " << WTERMSIG(status); in RunProgramFn()
692 return StringValue(std::to_string(status)); in RunProgramFn()
877 int status = wipe_block_device(fd, len); in WipeBlockDeviceFn() local
878 return StringValue((status == 0) ? "t" : ""); in WipeBlockDeviceFn()