mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 03:01:12 +02:00
* Allow HumanReadableByteCount to represent an unknown byte count Some byte counts, such as the capacity of an ASIF disk image, can't always be determined. Accept an optional byte count and render an unknown value as "-" in text output and as null in JSON output. * Fix listing and getting VMs when disk capacity is unavailable For ASIF disk images, the disk capacity is read with "diskutil image info". The command fails with "Resource temporarily unavailable" while a running VM holds the disk image open. As a result, "tart list" and "tart get" fail entirely when any such VM exists. Treat the disk capacity as unknown when it can't be determined, so that both commands still show the remaining information. Fixes #1344 * Remove unused VMDirectory.diskSizeGB() The method was added together with diskSizeBytes() but has never been used. "tart list" and "tart get" use diskSizeBytes() directly.