Skip to content

Commit

Permalink
convert: avoid copy
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed May 1, 2023
1 parent 413e0d0 commit 3da8738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ntfs2btrfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3857,7 +3857,7 @@ static void convert(ntfs& dev, enum btrfs_compression compression, enum btrfs_cs

for (auto& r : roots) {
if (r.id == BTRFS_ROOT_EXTENT || r.id == BTRFS_ROOT_CHUNK || r.id == BTRFS_ROOT_DEVTREE) {
r.old_addresses = r.addresses;
r.old_addresses.swap(r.addresses);
r.addresses.clear();

// FIXME - unallocate metadata and changed used value in chunks
Expand Down

0 comments on commit 3da8738

Please sign in to comment.