Skip to content

Get detailed snapshot information #6

Description

@svenstaro

Hey, thanks for sharing this nice library. I have a feature request: I'd like to list the snapshots and their details using this library which is currently not possible.

Example from qemu-img info --output json:

"snapshots": [
        {
            "vm-clock-nsec": 971752202,
            "name": "lol1",
            "date-sec": 1740159262,
            "date-nsec": 378114000,
            "vm-clock-sec": 19,
            "id": "1",
            "vm-state-size": 488113041
        },
        {
            "vm-clock-nsec": 976775186,
            "name": "lol2",
            "date-sec": 1740159266,
            "date-nsec": 251673000,
            "vm-clock-sec": 22,
            "id": "2",
            "vm-state-size": 490267083
        },
        {
            "vm-clock-nsec": 658318691,
            "name": "lol3",
            "date-sec": 1740159270,
            "date-nsec": 924688000,
            "vm-clock-sec": 26,
            "id": "3",
            "vm-state-size": 490344924
        },
        {
            "vm-clock-nsec": 184367219,
            "name": "lol4",
            "date-sec": 1740159280,
            "date-nsec": 598467000,
            "vm-clock-sec": 35,
            "id": "4",
            "vm-state-size": 490734093
        }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions