Lines Matching refs:path
29 int DataWriter::OpenPath(const std::string &path) in OpenPath() argument
31 if (path.empty()) { in OpenPath()
36 if (access(path.c_str(), W_OK) < 0) { in OpenPath()
37 LOG(ERROR) << "Datawriter: " << path << " is not writable."; in OpenPath()
40 char *realPath = realpath(path.c_str(), NULL); in OpenPath()
48 … LOG(ERROR) << "Datawriter: open block device " << path << " failed " << " : " << strerror(errno); in OpenPath()
52 LOG(ERROR) << "Datawriter: seek " << path << "failed " << " : " << strerror(errno); in OpenPath()
59 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
64 return std::make_unique<RawWriter>(path, offset); in CreateDataWriter()
84 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() argument
88 return CreateDataWriter(mode, path, offset); in CreateDataWriter()