UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Support drive resizing

Open stewartsmith opened this issue 2 years ago • 0 comments

Add UTMLogToMemory to capture output of "qemu-img info", which we can parse the JSON output of in order to determine the virtual size of the drive.

Use the same widget style for resizing as we do for creating a drive (GB/MB), although require clicking "Resize" to do the resize itself.

Currently doesn't warn about having not clicked "resize" though.

Fair warning: I'm pretty sure this is the first time in nearly 20 years I've looked at Objective-C code, and my Swift knowledge is sketchy at best.

Screen Shot 2022-06-01 at 22 58 28

stewartsmith avatar Jun 02 '22 05:06 stewartsmith

Thanks for the PR. There has been a lot of changes to the backend, so I picked up your changes to UTMQemuImage (using the new delegate interface for UTMLogging) and then reworked the UI to be coherent across all the different disk operations.

osy avatar Sep 05 '22 02:09 osy