Home
last modified time | relevance | path

Searched refs:owned_fd_ (Results 1 – 7 of 7) sorted by relevance

/system/core/fs_mgr/libdm/
Dloop_control.cpp148 : fd_(fd), owned_fd_(-1) { in LoopDevice()
150 owned_fd_.reset(fd.get()); in LoopDevice()
156 : fd_(-1), owned_fd_(-1) { in LoopDevice()
157 owned_fd_.reset(open(path.c_str(), O_RDWR | O_CLOEXEC)); in LoopDevice()
158 if (owned_fd_ == -1) { in LoopDevice()
162 fd_ = owned_fd_; in LoopDevice()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h119 ~CowReader() { owned_fd_ = {}; } in ~CowReader()
154 void CloseCowFd() { owned_fd_ = {}; } in CloseCowFd()
166 android::base::unique_fd owned_fd_; variable
Dcow_writer.h211 android::base::unique_fd owned_fd_;
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_writer.cpp218 owned_fd_.reset(open("/dev/null", O_RDWR | O_CLOEXEC)); in SetFd()
219 if (owned_fd_ < 0) { in SetFd()
223 fd_ = owned_fd_; in SetFd()
292 owned_fd_ = std::move(fd); in Initialize()
293 return Initialize(borrowed_fd{owned_fd_}); in Initialize()
310 owned_fd_ = std::move(fd); in InitializeAppend()
311 return InitializeAppend(android::base::borrowed_fd{owned_fd_}, label); in InitializeAppend()
Dcow_reader.cpp56 cow->owned_fd_.reset(); in CloneCowReader()
73 owned_fd_ = std::move(fd); in InitForMerge()
74 fd_ = owned_fd_.get(); in InitForMerge()
96 owned_fd_ = std::move(fd); in Parse()
97 return Parse(android::base::borrowed_fd{owned_fd_}, label); in Parse()
/system/core/fs_mgr/libdm/include/libdm/
Dloop_control.h89 android::base::unique_fd owned_fd_; variable
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp178 android::base::unique_fd owned_fd_; member
181 owned_fd_ = std::move(read_fd); in Transform()
182 return owned_fd_; in Transform()