Skip to content

qemu-img convert command(eg: qemu-img convert -f qcow2 -o preallocation=off -O qcow2 src.qcow2 dst.qcow2) will lost snapshots of qcow2 image. qcow2-defrag is a tool for defragging qcow2 image which can solve this problem.

Notifications You must be signed in to change notification settings

zhangyoujia/qcow2-defrag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

qcow2-defrag

Copyright (c) 2017 YOUPLUS

Author: YOUPLUS([email protected])

qemu-img convert command(eg: qemu-img convert -f qcow2 -o preallocation=off -O qcow2 src.qcow2 dst.qcow2) will lost snapshots of qcow2 image. qcow2-defrag is a tool for defragging qcow2 image which can solve this problem.

Compile

gcc -g -O2 -o qcow2-defrag fs_magic.h qcow2_defrag.h qcow2_defrag.c

Usage

qcow2-defrag [opts] <qcow2_image>

useage

Examples

qcow2-defrag info

test

qcow2-dump check

test

defragging

test

About

qemu-img convert command(eg: qemu-img convert -f qcow2 -o preallocation=off -O qcow2 src.qcow2 dst.qcow2) will lost snapshots of qcow2 image. qcow2-defrag is a tool for defragging qcow2 image which can solve this problem.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published