Skip to content

Commit

Permalink
fix backup for multiple disks
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Sep 5, 2023
1 parent 48af0ae commit 635be13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtnbdbackup
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def main() -> None:
with ThreadPoolExecutor(max_workers=args.worker) as executor:
futures = {
executor.submit(
backupDisk, args, disk, count, fileStream, virtClient
backupDisk, args, disk, count, repository, virtClient
): disk
for count, disk in enumerate(disks)
}
Expand Down Expand Up @@ -656,10 +656,11 @@ def backupDisk(
args: Namespace,
disk: DomainDisk,
count: int,
fileStream,
repository,
virtClient: virt.client,
):
"""Backup domain disk data."""
fileStream = stream.get(args, repository)
dStream = streamer.SparseStream(types)
sTypes = types.SparseStreamTypes()
current_thread().name = disk.target
Expand Down

0 comments on commit 635be13

Please sign in to comment.