Store maps in new subdir "maps"

This commit is contained in:
Alexander Neumann committed 2014-11-23 22:26:01 +01:00
1 parent b1923063fe
commit 33ce4e33aa
9 files changed
+57 -12

No files matched your search

+2 -1
View File
@@ -13,7 +13,7 @@ import (
type Snapshot struct {
Time time.Time `json:"time"`
Content backend.ID `json:"content"`
BlobList *BlobList `json:"blobs"`
Map backend.ID `json:"map"`
Dir string `json:"dir"`
Hostname string `json:"hostname,omitempty"`
Username string `json:"username,omitempty"`
@@ -21,6 +21,7 @@ type Snapshot struct {
GID string `json:"gid,omitempty"`
id backend.ID // plaintext ID, used during restore
bl *BlobList
}
func NewSnapshot(dir string) *Snapshot {