Lines Matching refs:base_dir
1706 Result<void> SnapshotDataDirectory(const std::string& base_dir, in SnapshotDataDirectory() argument
1711 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in SnapshotDataDirectory()
1718 auto from_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in SnapshotDataDirectory()
1731 Result<void> RestoreDataDirectory(const std::string& base_dir, in RestoreDataDirectory() argument
1736 "%s/%s/%d%s/%s", base_dir.c_str(), kApexSnapshotSubDir, rollback_id, in RestoreDataDirectory()
1738 auto to_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in RestoreDataDirectory()
1755 void SnapshotOrRestoreDeIfNeeded(const std::string& base_dir, in SnapshotOrRestoreDeIfNeeded() argument
1760 SnapshotDataDirectory(base_dir, session.GetRollbackId(), apex_name); in SnapshotOrRestoreDeIfNeeded()
1770 SnapshotDataDirectory(base_dir, session.GetRollbackId(), apex_name, in SnapshotOrRestoreDeIfNeeded()
1774 RestoreDataDirectory(base_dir, session.GetRollbackId(), apex_name); in SnapshotOrRestoreDeIfNeeded()
1812 auto base_dir = StringPrintf("%s/%d", kCeDataDir, user_id); in SnapshotCeData() local
1813 return SnapshotDataDirectory(base_dir, rollback_id, apex_name); in SnapshotCeData()
1818 auto base_dir = StringPrintf("%s/%d", kCeDataDir, user_id); in RestoreCeData() local
1819 return RestoreDataDirectory(base_dir, rollback_id, apex_name); in RestoreCeData()
1828 Result<void> DestroySnapshots(const std::string& base_dir, in DestroySnapshots() argument
1830 auto path = StringPrintf("%s/%s/%d", base_dir.c_str(), kApexSnapshotSubDir, in DestroySnapshots()
1886 void RestorePreRestoreSnapshotsIfPresent(const std::string& base_dir, in RestorePreRestoreSnapshotsIfPresent() argument
1889 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in RestorePreRestoreSnapshotsIfPresent()
1894 base_dir, session.GetRollbackId(), apex_name, true /* pre_restore */); in RestorePreRestoreSnapshotsIfPresent()
1917 void DeleteDePreRestoreSnapshots(const std::string& base_dir, in DeleteDePreRestoreSnapshots() argument
1920 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in DeleteDePreRestoreSnapshots()