Lines Matching refs:path

171 static std::string FindBlockDevice(const std::string& path, bool* encryptable, bool* encrypted,  in FindBlockDevice()  argument
180 if (android::base::StartsWith(path, entry.mount_point + "/")) { in FindBlockDevice()
243 static int ProductBlockMap(const std::string& path, const std::string& map_file, in ProductBlockMap() argument
264 if (stat(path.c_str(), &sb) != 0) { in ProductBlockMap()
265 PLOG(ERROR) << "failed to stat " << path; in ProductBlockMap()
291 android::base::unique_fd fd(open(path.c_str(), O_RDWR)); in ProductBlockMap()
293 PLOG(ERROR) << "failed to open " << path << " for reading"; in ProductBlockMap()
327 PLOG(ERROR) << "Failed to set pin_file for f2fs: " << path << " on " << blk_dev; in ProductBlockMap()
352 int error = RetryFibmap(fd, path, &block, head_block); in ProductBlockMap()
374 PLOG(ERROR) << "failed to read " << path; in ProductBlockMap()
397 int error = RetryFibmap(fd, path, &block, head_block); in ProductBlockMap()
474 std::string path; in Uncrypt() local
475 if (!android::base::Realpath(input_path, &path)) { in Uncrypt()
483 const std::string blk_dev = FindBlockDevice(path, &encryptable, &encrypted, &f2fs_fs); in Uncrypt()
485 LOG(ERROR) << "Failed to find block device for " << path; in Uncrypt()
499 if (android::base::StartsWith(path, "/data/")) { in Uncrypt()
501 return ProductBlockMap(path, map_file, blk_dev, encrypted, f2fs_fs, socket); in Uncrypt()
588 std::string path = option.substr(strlen("--wipe_package=")); in setup_bcb() local
589 if (!android::base::ReadFileToString(path, &wipe_package)) { in setup_bcb()
590 PLOG(ERROR) << "failed to read " << path; in setup_bcb()