Home
last modified time | relevance | path

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

/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp170 bool FiemapWriter::GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path, in GetBlockDeviceForFile() argument
198 *bdev_path = ::android::base::StringPrintf("/dev/block/%s", bdev_raw.c_str()); in GetBlockDeviceForFile()
201 if (stat(bdev_path->c_str(), &sb)) { in GetBlockDeviceForFile()
202 PLOG(ERROR) << "Failed to get stat for block device: " << *bdev_path; in GetBlockDeviceForFile()
207 PLOG(ERROR) << "File: " << *bdev_path << " is not a block device"; in GetBlockDeviceForFile()
214 static bool GetBlockDeviceSize(int bdev_fd, const std::string& bdev_path, uint64_t* bdev_size) { in GetBlockDeviceSize() argument
217 PLOG(ERROR) << "Failed to get total size for: " << bdev_path; in GetBlockDeviceSize()
710 std::string bdev_path; in Open() local
711 if (!GetBlockDeviceForFile(abs_path, &bdev_path)) { in Open()
718 TEMP_FAILURE_RETRY(open(bdev_path.c_str(), O_RDONLY | O_CLOEXEC))); in Open()
[all …]
Dutility.cpp80 auto bdev_path = file->bdev_path(); in GetDevicePathForFile() local
83 if (!stat(bdev_path.c_str(), &given) && !stat(kUserdataDevice, &userdata)) { in GetDevicePathForFile()
89 return bdev_path; in GetDevicePathForFile()
Dfiemap_writer_test.cpp151 EXPECT_EQ(fptr->bdev_path().find("/dev/block/"), size_t(0)); in TEST_F()
154 EXPECT_EQ(fptr->bdev_path().find("/dev/block/dm-"), string::npos); in TEST_F()
221 std::string bdev_path; in TEST_F() local
222 ASSERT_TRUE(FiemapWriter::GetBlockDeviceForFile(testfile, &bdev_path, &uses_dm)); in TEST_F()
247 unique_fd bdev(open(fptr->bdev_path().c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
Dsplit_fiemap_writer.cpp315 const std::string& SplitFiemap::bdev_path() const { in bdev_path() function in android::fiemap::SplitFiemap
316 return files_[0]->bdev_path(); in bdev_path()
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_writer.h79 static bool GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path,
86 const std::string& bdev_path() const { return bdev_path_; }; in bdev_path() function
Dsplit_fiemap_writer.h76 const std::string& bdev_path() const;