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.cpp138 : fd_(fd), owned_fd_(-1) { in LoopDevice()
140 owned_fd_.reset(fd.get()); in LoopDevice()
146 : fd_(-1), owned_fd_(-1) { in LoopDevice()
147 owned_fd_.reset(open(path.c_str(), O_RDWR | O_CLOEXEC)); in LoopDevice()
148 if (owned_fd_ == -1) { in LoopDevice()
152 fd_ = owned_fd_; in LoopDevice()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h119 ~CowReader() { owned_fd_ = {}; } in ~CowReader()
153 void CloseCowFd() { owned_fd_ = {}; } in CloseCowFd()
159 android::base::unique_fd owned_fd_; variable
Dcow_writer.h136 android::base::unique_fd owned_fd_;
/system/core/fs_mgr/libsnapshot/
Dcow_writer.cpp123 owned_fd_.reset(open("/dev/null", O_RDWR | O_CLOEXEC)); in SetFd()
124 if (owned_fd_ < 0) { in SetFd()
128 fd_ = owned_fd_; in SetFd()
144 owned_fd_ = std::move(fd); in Initialize()
145 return Initialize(borrowed_fd{owned_fd_}); in Initialize()
157 owned_fd_ = std::move(fd); in InitializeAppend()
158 return InitializeAppend(android::base::borrowed_fd{owned_fd_}, label); in InitializeAppend()
Dcow_reader.cpp46 owned_fd_ = std::move(fd); in InitForMerge()
47 fd_ = owned_fd_.get(); in InitForMerge()
69 owned_fd_ = std::move(fd); in Parse()
70 return Parse(android::base::borrowed_fd{owned_fd_}, label); in Parse()
/system/core/fs_mgr/libdm/include/libdm/
Dloop_control.h86 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()