Home
last modified time | relevance | path

Searched refs:LockedFile (Results 1 – 11 of 11) sorted by relevance

/aosp12/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dsnapshot.h455 class LockedFile final {
459 ~LockedFile();
529 bool RemoveAllSnapshots(LockedFile* lock);
540 bool AreAllSnapshotsCancelled(LockedFile* lock);
557 std::unique_ptr<LockedFile> LockShared();
558 std::unique_ptr<LockedFile> LockExclusive();
562 UpdateState ReadUpdateState(LockedFile* file);
578 void AcknowledgeMergeSuccess(LockedFile* lock);
718 bool UnmapAllSnapshots(LockedFile* lock);
726 bool EnsureNoOverflowSnapshot(LockedFile* lock);
[all …]
/aosp12/art/libartbase/base/
H A Dscoped_flock.h31 class LockedFile; variable
35 typedef std::unique_ptr<LockedFile, LockedFileCloseNoFlush> ScopedFlock;
37 class LockedFile : public unix_file::FdFile {
66 explicit LockedFile(FdFile&& other) : FdFile(std::move(other)) { in LockedFile() function
71 LockedFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) in LockedFile() function
78 void operator()(LockedFile* ptr) { in operator()
H A Dscoped_flock.cc32 /* static */ ScopedFlock LockedFile::Open(const char* filename, std::string* error_msg) { in Open()
36 /* static */ ScopedFlock LockedFile::Open(const char* filename, int flags, bool block, in Open()
98 return ScopedFlock(new LockedFile(std::move((*file.get())))); in Open()
103 ScopedFlock LockedFile::DupOf(const int fd, const std::string& path, in DupOf()
119 new LockedFile(DupCloexec(fd), path, /* check_usage= */ false, read_only_mode)); in DupOf()
135 void LockedFile::ReleaseLock() { in ReleaseLock()
H A Dscoped_flock_test.cc34 ScopedFlock file_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F()
39 ScopedFlock second_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F()
50 ScopedFlock file_lock = LockedFile::Open(scratch_file.GetFilename().c_str(), in TEST_F()
56 ScopedFlock file_lock = LockedFile::Open("/will/not/exist", in TEST_F()
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dsnapshot.cpp1308 void SnapshotManager::AcknowledgeMergeSuccess(LockedFile* lock) { in AcknowledgeMergeSuccess()
1440 bool SnapshotManager::HandleCancelledUpdate(LockedFile* lock, in HandleCancelledUpdate()
1650 bool SnapshotManager::GetSnapshotFlashingStatus(LockedFile* lock, in GetSnapshotFlashingStatus()
1693 bool SnapshotManager::RemoveAllSnapshots(LockedFile* lock) { in RemoveAllSnapshots()
1845 bool SnapshotManager::UpdateUsesCompression(LockedFile* lock) { in UpdateUsesCompression()
1988 bool SnapshotManager::MapPartitionWithSnapshot(LockedFile* lock, in MapPartitionWithSnapshot()
2395 bool SnapshotManager::UnmapAllSnapshots(LockedFile* lock) { in UnmapAllSnapshots()
2422 -> std::unique_ptr<LockedFile> { in OpenFile()
2438 SnapshotManager::LockedFile::~LockedFile() { in ~LockedFile()
2516 UpdateState SnapshotManager::ReadUpdateState(LockedFile* lock) { in ReadUpdateState()
[all …]
H A Dutility.h86 AutoDeleteSnapshot(SnapshotManager* manager, SnapshotManager::LockedFile* lock, in AutoDeleteSnapshot()
95 SnapshotManager::LockedFile* lock_ = nullptr;
H A Dsnapshot_test.cpp419 std::unique_ptr<SnapshotManager::LockedFile> lock_;
790 std::unique_ptr<SnapshotManager::LockedFile> lock_;
/aosp12/art/profman/
H A Dprofile_assistant.cc118 flocks_[i] = LockedFile::Open(filenames[i].c_str(), O_RDWR, /* block= */ true, error); in Init()
131 flocks_[i] = LockedFile::DupOf(fds[i], "profile-file", in Init()
163 ScopedFlock reference_profile_file = LockedFile::DupOf(reference_profile_file_fd, in ProcessProfiles()
191 ScopedFlock locked_reference_profile_file = LockedFile::Open( in ProcessProfiles()
/aosp12/art/libartbase/base/metrics/
H A Dmetrics_common.cc169 LockedFile::Open(filename_.c_str(), O_CREAT | O_WRONLY | O_APPEND, true, &error_message)}; in EndReport()
/aosp12/art/libprofile/profile/
H A Dprofile_compilation_info.cc736 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in MergeWith()
771 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Load()
815 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Save()
/aosp12/art/runtime/gc/space/
H A Dimage_space.cc2789 ScopedFlock image = LockedFile::Open(image_filename.c_str(), in Load()