Use "pack file" instead of "data file" (#2885)

- changed variable names, especially changed DataFile into PackFile
- changed in some comments
- always use "pack file" in docu
This commit is contained in:
aawsome
2020-08-16 11:16:38 +02:00
committed by GitHub
parent 643bbbe156
commit 0fed6a8dfc
45 changed files with 126 additions and 126 deletions

View File

@@ -50,7 +50,7 @@ const cacheVersion = 1
var _ restic.Cache = &Cache{}
var cacheLayoutPaths = map[restic.FileType]string{
restic.DataFile: "data",
restic.PackFile: "data",
restic.SnapshotFile: "snapshots",
restic.IndexFile: "index",
}

View File

@@ -88,7 +88,7 @@ func TestFiles(t *testing.T) {
var tests = []restic.FileType{
restic.SnapshotFile,
restic.DataFile,
restic.PackFile,
restic.IndexFile,
}
@@ -144,7 +144,7 @@ func TestFileSaveWriter(t *testing.T) {
id := restic.ID{}
copy(id[:], data)
h := restic.Handle{
Type: restic.DataFile,
Type: restic.PackFile,
Name: id.String(),
}
@@ -202,7 +202,7 @@ func TestFileLoad(t *testing.T) {
id := restic.ID{}
copy(id[:], data)
h := restic.Handle{
Type: restic.DataFile,
Type: restic.PackFile,
Name: id.String(),
}
if err := c.Save(h, bytes.NewReader(data)); err != nil {