Searched refs:lock_mode (Results 1 – 2 of 2) sorted by relevance
352 LockedFile(const std::string& path, android::base::unique_fd&& fd, int lock_mode) in LockedFile() argument353 : path_(path), fd_(std::move(fd)), lock_mode_(lock_mode) {} in LockedFile()355 int lock_mode() const { return lock_mode_; } in lock_mode() function
296 CHECK(lock->lock_mode() == LOCK_EX); in CreateSnapshot()345 CHECK(lock->lock_mode() == LOCK_EX); in CreateCowImage()526 CHECK(lock->lock_mode() == LOCK_EX); in DeleteSnapshot()1854 int lock_mode = lock_flags & (LOCK_EX | LOCK_SH); in OpenFile() local1855 return std::make_unique<LockedFile>(file, std::move(fd), lock_mode); in OpenFile()1973 CHECK(lock->lock_mode() == LOCK_EX); in WriteSnapshotUpdateStatus()2058 CHECK(lock->lock_mode() == LOCK_EX); in WriteSnapshotStatus()