mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
resize: Use sparse copy for extended partitions unless --no-sparse.
Thanks: Maxim Perevedentsev
This commit is contained in:
@@ -1228,7 +1228,9 @@ read the man page virt-resize(1).
|
||||
*)
|
||||
let srcoffset = p.p_part.G.part_start in
|
||||
let destoffset = p.p_target_start *^ 512L in
|
||||
g#copy_device_to_device ~srcoffset ~destoffset ~size:copysize "/dev/sda" "/dev/sdb"
|
||||
g#copy_device_to_device ~srcoffset ~destoffset ~size:copysize
|
||||
~sparse
|
||||
"/dev/sda" "/dev/sdb"
|
||||
)
|
||||
| OpIgnore | OpDelete -> ()
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user