Home
last modified time | relevance | path

Searched refs:out_lo_dev_name (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/common/
Dtest_utils.cc139 string* out_lo_dev_name) { in BindToUnusedLoopDeviceLegacy() argument
146 *out_lo_dev_name = "/dev/loop" + std::to_string(loop_number); in BindToUnusedLoopDeviceLegacy()
150 HANDLE_EINTR(open(out_lo_dev_name->c_str(), O_RDWR | O_LARGEFILE)); in BindToUnusedLoopDeviceLegacy()
153 TEST_AND_RETURN_FALSE_ERRNO(mknod(out_lo_dev_name->c_str(), in BindToUnusedLoopDeviceLegacy()
157 HANDLE_EINTR(open(out_lo_dev_name->c_str(), O_RDWR | O_LARGEFILE)); in BindToUnusedLoopDeviceLegacy()
165 PLOG(ERROR) << "Loop device " << out_lo_dev_name->c_str() in BindToUnusedLoopDeviceLegacy()
177 string* out_lo_dev_name) { in BindToUnusedLoopDevice() argument
178 CHECK(out_lo_dev_name); in BindToUnusedLoopDevice()
188 TEST_AND_RETURN_FALSE(loop_control.Attach(data_fd, 5s, out_lo_dev_name)); in BindToUnusedLoopDevice()
189 int loop_device_fd = open(out_lo_dev_name->c_str(), O_RDWR | O_CLOEXEC); in BindToUnusedLoopDevice()
[all …]
Dtest_utils.h66 std::string* out_lo_dev_name);