diff options
author | Alexander Batischev <eual.jp@gmail.com> | 2021-07-28 17:51:32 +0300 |
---|---|---|
committer | Alexander Batischev <eual.jp@gmail.com> | 2021-07-28 23:02:19 +0300 |
commit | 97938e694da84f20d39f6895c50cd29b89cc7dd5 (patch) | |
tree | ac41f9d030be67130c7efa3fab3a6febaa62fe21 /src/backup_run.rs | |
parent | 7f4087758e401791794f0518233ea058355438d3 (diff) | |
download | obnam2-97938e694da84f20d39f6895c50cd29b89cc7dd5.tar.gz |
Mark CACHEDIR.TAGs in the database
In the following commits, we'll use this to check if a tag existed
before.
Diffstat (limited to 'src/backup_run.rs')
-rw-r--r-- | src/backup_run.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backup_run.rs b/src/backup_run.rs index 3c03ec3..9667382 100644 --- a/src/backup_run.rs +++ b/src/backup_run.rs @@ -35,6 +35,7 @@ pub struct FsEntryBackupOutcome { pub entry: FilesystemEntry, pub ids: Vec<ChunkId>, pub reason: Reason, + pub is_cachedir_tag: bool, } impl<'a> BackupRun<'a> { @@ -154,7 +155,13 @@ impl<'a> BackupRun<'a> { } else { vec![] }; - Ok(FsEntryBackupOutcome { entry, ids, reason }) + // TODO: replace `false` with an actual value + Ok(FsEntryBackupOutcome { + entry, + ids, + reason, + is_cachedir_tag: false, + }) } } } @@ -185,12 +192,16 @@ fn backup_file( entry: entry.clone(), ids: vec![], reason: Reason::FileError, + // TODO: replace `false` with an actual value + is_cachedir_tag: false, } } Ok(ids) => FsEntryBackupOutcome { entry: entry.clone(), ids, reason, + // TODO: replace `false` with an actual value + is_cachedir_tag: false, }, } } |