diff --git a/box.go b/box.go index 8223592..7bc3434 100644 --- a/box.go +++ b/box.go @@ -198,20 +198,20 @@ func TransferDirectZfs(from, to Addr) error { } - fromFromSnapshotId := len(fromSnapshots) + fromFromSnapshotId := len(fromSnapshots) - 1 fromToSnapshotId := -1 for fromFromSnapshotId >= 0 { - fromFromSnapshotId = fromFromSnapshotId - 1 - fromToSnapshotId = len(toSnapshots) + fromToSnapshotId = len(toSnapshots) - 1 for fromToSnapshotId >= 0 { - fromToSnapshotId = fromToSnapshotId - 1 if fromSnapshots[fromFromSnapshotId].name == toSnapshots[fromToSnapshotId].name { break } + fromToSnapshotId = fromToSnapshotId - 1 } if fromToSnapshotId >= 0 { break } + fromFromSnapshotId = fromFromSnapshotId - 1 } if fromFromSnapshotId == -1 { diff --git a/version.go b/version.go index 794dbfd..14f1a01 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "3b1d0fc" +var githash = "2ca0695" var branch = "master" -var buildstamp = "2023-09-10_16:35:29" -var commits = "86" -var version = "3b1d0fc-b86 - 2023-09-10_16:35:29" +var buildstamp = "2023-09-10_16:42:46" +var commits = "87" +var version = "2ca0695-b87 - 2023-09-10_16:42:46"