mirror of
https://github.com/kopia/kopia.git
synced 2026-03-19 14:46:30 -04:00
added pack support to GetStorageBlocks()
This commit is contained in:
@@ -23,6 +23,15 @@ func (r *ObjectManager) addStorageBlocks(result map[string]bool, oid ObjectID) e
|
||||
result[oid.StorageBlock] = true
|
||||
}
|
||||
|
||||
if oid.PackID != "" {
|
||||
s, err := r.packIDToSection(oid)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
r.addStorageBlocks(result, s.Base)
|
||||
}
|
||||
|
||||
if oid.Indirect == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user