Home
last modified time | relevance | path

Searched refs:bdev_path (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libfiemap_writer/
Dfiemap_writer.cpp133 bool FiemapWriter::GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path, in GetBlockDeviceForFile() argument
161 *bdev_path = ::android::base::StringPrintf("/dev/block/%s", bdev_raw.c_str()); in GetBlockDeviceForFile()
164 if (stat(bdev_path->c_str(), &sb)) { in GetBlockDeviceForFile()
165 PLOG(ERROR) << "Failed to get stat for block device: " << *bdev_path; in GetBlockDeviceForFile()
170 PLOG(ERROR) << "File: " << *bdev_path << " is not a block device"; in GetBlockDeviceForFile()
177 static bool GetBlockDeviceSize(int bdev_fd, const std::string& bdev_path, uint64_t* bdev_size) { in GetBlockDeviceSize() argument
180 PLOG(ERROR) << "Failed to get total size for: " << bdev_path; in GetBlockDeviceSize()
590 std::string bdev_path; in Open() local
591 if (!GetBlockDeviceForFile(abs_path, &bdev_path)) { in Open()
598 TEMP_FAILURE_RETRY(open(bdev_path.c_str(), O_RDONLY | O_CLOEXEC))); in Open()
[all …]
Dfiemap_writer_test.cpp150 EXPECT_EQ(fptr->bdev_path().find("/dev/block/"), size_t(0)); in TEST_F()
151 EXPECT_EQ(fptr->bdev_path().find("/dev/block/dm-"), string::npos); in TEST_F()
215 std::string bdev_path; in TEST_F() local
216 ASSERT_TRUE(FiemapWriter::GetBlockDeviceForFile(testfile, &bdev_path, &uses_dm)); in TEST_F()
241 unique_fd bdev(open(fptr->bdev_path().c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
Dsplit_fiemap_writer.cpp292 const std::string& SplitFiemap::bdev_path() const { in bdev_path() function in android::fiemap_writer::SplitFiemap
293 return files_[0]->bdev_path(); in bdev_path()
/system/core/fs_mgr/libfiemap_writer/include/libfiemap_writer/
Dfiemap_writer.h67 static bool GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path,
74 const std::string& bdev_path() const { return bdev_path_; }; in bdev_path() function
Dsplit_fiemap_writer.h72 const std::string& bdev_path() const;
/system/gsid/
Dgsi_service.cpp1093 data_device_path = writer->bdev_path(); in CreateMetadata()