# qcow2_info

Get detailed information about a qcow2 disk image.

```rhai
qcow2_info(path) -> Dynamic
```

## Parameters

- `path` (string): Path to the qcow2 image

## Returns

Returns a dynamic map with image information parsed from qemu-img info.

## Examples

```rhai
let info = qcow2_info("/vms/disk1.qcow2");

// Access image information
print("Format: " + info.format);
print("Virtual size: " + info["virtual-size"]);
print("Disk size: " + info["disk-size"]);
print("Cluster size: " + info["cluster-size"]);

// Check for backing file
if info["backing-filename"] != () {
    print("Backing file: " + info["backing-filename"]);
}
```

## Common Fields

The returned map may contain:
- `format`: Image format (should be "qcow2")
- `virtual-size`: Virtual size in bytes
- `disk-size`: Actual disk usage in bytes
- `cluster-size`: Cluster size
- `backing-filename`: Backing file path (if any)
- `snapshots`: Array of snapshots (if any)

## Notes

- Uses qemu-img info --output=json internally
- Returns parsed JSON as Rhai map/array structures
- Useful for checking image properties and snapshots
