Lines Matching refs:base_dir
1279 Result<void> snapshotDataDirectory(const std::string& base_dir, in snapshotDataDirectory() argument
1284 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in snapshotDataDirectory()
1291 auto from_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in snapshotDataDirectory()
1304 Result<void> restoreDataDirectory(const std::string& base_dir, in restoreDataDirectory() argument
1309 "%s/%s/%d%s/%s", base_dir.c_str(), kApexSnapshotSubDir, rollback_id, in restoreDataDirectory()
1311 auto to_path = StringPrintf("%s/%s/%s", base_dir.c_str(), kApexDataSubDir, in restoreDataDirectory()
1328 void snapshotOrRestoreDeIfNeeded(const std::string& base_dir, in snapshotOrRestoreDeIfNeeded() argument
1333 snapshotDataDirectory(base_dir, session.GetRollbackId(), apex_name); in snapshotOrRestoreDeIfNeeded()
1343 snapshotDataDirectory(base_dir, session.GetRollbackId(), apex_name, in snapshotOrRestoreDeIfNeeded()
1347 restoreDataDirectory(base_dir, session.GetRollbackId(), apex_name); in snapshotOrRestoreDeIfNeeded()
1385 auto base_dir = StringPrintf("%s/%d", kCeDataDir, user_id); in snapshotCeData() local
1386 Result<void> result = snapshotDataDirectory(base_dir, rollback_id, apex_name); in snapshotCeData()
1391 StringPrintf("%s/%s/%d/%s", base_dir.c_str(), kApexSnapshotSubDir, in snapshotCeData()
1398 auto base_dir = StringPrintf("%s/%d", kCeDataDir, user_id); in restoreCeData() local
1399 return restoreDataDirectory(base_dir, rollback_id, apex_name); in restoreCeData()
1431 Result<void> destroySnapshots(const std::string& base_dir, in destroySnapshots() argument
1433 auto path = StringPrintf("%s/%s/%d", base_dir.c_str(), kApexSnapshotSubDir, in destroySnapshots()
1453 void restorePreRestoreSnapshotsIfPresent(const std::string& base_dir, in restorePreRestoreSnapshotsIfPresent() argument
1456 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in restorePreRestoreSnapshotsIfPresent()
1461 base_dir, session.GetRollbackId(), apex_name, true /* pre_restore */); in restorePreRestoreSnapshotsIfPresent()
1490 void deleteDePreRestoreSnapshots(const std::string& base_dir, in deleteDePreRestoreSnapshots() argument
1493 StringPrintf("%s/%s/%d%s", base_dir.c_str(), kApexSnapshotSubDir, in deleteDePreRestoreSnapshots()