Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get detailed snapshot information #6

Open
svenstaro opened this issue Feb 23, 2025 · 0 comments
Open

Get detailed snapshot information #6

svenstaro opened this issue Feb 23, 2025 · 0 comments

Comments

@svenstaro
Copy link

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
        }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant