Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
roosterfish committed Jan 31, 2024
1 parent 4a930e4 commit 000a967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lxd/storage/drivers/driver_ceph_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,8 @@ func (d *ceph) sendVolume(conn io.ReadWriteCloser, volumeName string, volumePare
// Redirect output to stdout.
args = append(args, "-")

fmt.Println("--> rbd", args)

cmd := exec.Command("rbd", args...)

stderr, err := cmd.StderrPipe()
Expand Down Expand Up @@ -1193,6 +1195,8 @@ func (d *ceph) receiveVolume(volumeName string, conn io.ReadWriteCloser, writeWr
volumeName,
}

fmt.Println("--> rbd", args)

cmd := exec.Command("rbd", args...)

stdin, err := cmd.StdinPipe()
Expand Down
2 changes: 1 addition & 1 deletion lxd/storage/drivers/driver_ceph_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ func (d *ceph) MigrateVolume(vol Volume, conn io.ReadWriteCloser, volSrcArgs *mi
// In this case the first snapshot gets transferred completely without being able to create a diff.
// This also happens if the snapshot doesn't yet exist on the target.
if existingSourceSnapName == sourceSnapName && i > 0 {
existingSourceParentSnapName = fmt.Sprintf("snapshot_%s", existingSourceSnapName)
existingSourceParentSnapName = fmt.Sprintf("snapshot_%s", volSrcArgs.SourceSnapshots[i-1])
}
}

Expand Down

0 comments on commit 000a967

Please sign in to comment.