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

All kinds of cleanup & add 'qemu convert' command #4

Merged
merged 16 commits into from
Jan 18, 2024
Merged

All kinds of cleanup & add 'qemu convert' command #4

merged 16 commits into from
Jan 18, 2024

Conversation

ming1
Copy link
Collaborator

@ming1 ming1 commented Jan 18, 2024

  • kill 'cargo clippy' warning

  • improve code for parsing header

  • add document

  • add 'qcow2 convert' command

ming1 added 16 commits January 17, 2024 02:04
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
uring based (real)async IO trait should get best performance.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
In case of parsing header failure, try to read 64k and parse again.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Dump the following header info:

- header_length
- crypt_method
- compression_type

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Don't expose fields to external user.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Add one helper for reusing in the coming convert command.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Add convert command for converting between raw and qcow2.

The command line is similar with 'qemu-img convert'.

But not support to convert raw into compressed qcow2 yet, but the
reverse is supported.

Add one test for covering convert command.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
@ming1 ming1 merged commit d6b61e5 into main Jan 18, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant