)]}'
{
  "commit": "df957115c46845e2c0ccc29ac0a75eb9700a9a0d",
  "tree": "1ed27cf57691214d6ee590fa25c05c711580b113",
  "parents": [
    "40aa38a651a8d4ca99c70e591176a97abcae5295"
  ],
  "author": {
    "name": "Alberto Garcia",
    "email": "berto@igalia.com",
    "time": "Tue Jul 30 16:15:52 2024 +0200"
  },
  "committer": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Thu Mar 13 17:57:23 2025 +0100"
  },
  "message": "scripts/qcow2-to-stdout.py: Add script to write qcow2 images to stdout\n\nThis tool converts a disk image to qcow2, writing the result directly\nto stdout. This can be used for example to send the generated file\nover the network.\n\nThis is equivalent to using qemu-img to convert a file to qcow2 and\nthen writing the result to stdout, with the difference that this tool\ndoes not need to create this temporary qcow2 file and therefore does\nnot need any additional disk space.\n\nImplementing this directly in qemu-img is not really an option because\nit expects the output file to be seekable and it is also meant to be a\ngeneric tool that supports all combinations of file formats and image\noptions. Instead, this tool can only produce qcow2 files with the\nbasic options, without compression, encryption or other features.\n\nThe input file is read twice. The first pass is used to determine\nwhich clusters contain non-zero data and that information is used to\ncreate the qcow2 header, refcount table and blocks, and L1 and L2\ntables. After all that metadata is created then the second pass is\nused to write the guest data.\n\nBy default qcow2-to-stdout.py expects the input to be a raw file, but\nif qemu-storage-daemon is available then it can also be used to read\nimages in other formats. Alternatively the user can also run qemu-nbd\nor qemu-storage-daemon manually instead.\n\nSigned-off-by: Alberto Garcia \u003cberto@igalia.com\u003e\nSigned-off-by: Madeeha Javed \u003cjaved@igalia.com\u003e\nMessage-ID: \u003c20240730141552.60404-1-berto@igalia.com\u003e\nReviewed-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "06b7c13ccbb547a9eb6e13817971ae8f2f47544d",
      "new_mode": 33261,
      "new_path": "scripts/qcow2-to-stdout.py"
    }
  ]
}
