miscounted snapshots to add

This commit is contained in:
shoopea
2023-06-30 00:07:07 +02:00
parent 89ae6ea612
commit aa8d20370b
2 changed files with 5 additions and 5 deletions

2
box.go
View File

@@ -196,7 +196,7 @@ func TransferZfs(from, to Addr) error {
return err
}
for _, v := range fromSnapshots[fromFromSnapshotId:] {
for _, v := range fromSnapshots[fromFromSnapshotId+1:] {
cfg.box[to.Box()].zfs.filesystems[to.Path()].AddSnapshot(&ZfsSnapshot{name: v.name, fs: cfg.box[to.Box()].zfs.filesystems[to.Path()]})
}
}