Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h444 LockedFile(const std::string& path, android::base::unique_fd&& fd, int lock_mode) in LockedFile() argument
445 : path_(path), fd_(std::move(fd)), lock_mode_(lock_mode) {} in LockedFile()
447 int lock_mode() const { return lock_mode_; } in lock_mode() function
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp329 CHECK(lock->lock_mode() == LOCK_EX); in CreateSnapshot()
380 CHECK(lock->lock_mode() == LOCK_EX); in CreateCowImage()
600 CHECK(lock->lock_mode() == LOCK_EX); in DeleteSnapshot()
2403 int lock_mode = lock_flags & (LOCK_EX | LOCK_SH); in OpenFile() local
2404 return std::make_unique<LockedFile>(file, std::move(fd), lock_mode); in OpenFile()
2544 CHECK(lock->lock_mode() == LOCK_EX); in WriteSnapshotUpdateStatus()
2629 CHECK(lock->lock_mode() == LOCK_EX); in WriteSnapshotStatus()