Home
last modified time | relevance | path

Searched refs:bdev (Results 1 – 4 of 4) sorted by relevance

/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp91 static bool DeviceMapperStackPop(const std::string& bdev, std::string* bdev_raw) { in DeviceMapperStackPop() argument
92 *bdev_raw = bdev; in DeviceMapperStackPop()
94 if (!::android::base::StartsWith(bdev, "dm-")) { in DeviceMapperStackPop()
100 auto dm_name_file = "/sys/block/" + bdev + "/dm/name"; in DeviceMapperStackPop()
111 LOG(ERROR) << "Could not read device-mapper table for " << dm_name << " at " << bdev; in DeviceMapperStackPop()
127 LOG(INFO) << "Stopping at complex table for " << dm_name << " at " << bdev; in DeviceMapperStackPop()
134 auto dm_leaf_dir = "/sys/block/" + bdev + "/slaves"; in DeviceMapperStackPop()
162 << bdev; in DeviceMapperStackPop()
178 std::string bdev; in GetBlockDeviceForFile() local
179 if (!BlockDeviceToName(major(sb.st_dev), minor(sb.st_dev), &bdev)) { in GetBlockDeviceForFile()
[all …]
Dutility.cpp105 std::string bdev; in F2fsPinBeforeAllocate() local
106 if (!BlockDeviceToName(major(st.st_dev), minor(st.st_dev), &bdev)) { in F2fsPinBeforeAllocate()
113 std::string feature_file = "/sys/fs/f2fs/" + bdev + "/features"; in F2fsPinBeforeAllocate()
Dfiemap_writer_test.cpp247 unique_fd bdev(open(fptr->bdev_path().c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() local
248 ASSERT_GE(bdev, 0); in TEST_F()
251 ASSERT_EQ(lseek(bdev, where, SEEK_SET), where); in TEST_F()
256 ASSERT_TRUE(android::base::ReadFully(bdev, actual.data(), actual.size())); in TEST_F()
/system/extras/ioshark/
Dioshark_bench_subr.c380 get_blockdev_name(char *bdev) in get_blockdev_name() argument
405 strcpy(bdev, "mmcblk0"); in get_blockdev_name()
410 strcpy(bdev, "sda"); in get_blockdev_name()
412 strcpy(bdev, blockdev_name); in get_blockdev_name()