-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add '--mounts' option #43
Add '--mounts' option #43
Conversation
Thanks for the PR. Can you add more details to the commit message (and maybe PR description) how the output would look like for example. This would also need some tests and a happy CI. |
The errors during test coverage seem to be the same errors we are currently fixing go-criu, related to go 1.20. Once the fixes in go-criu are working it would need to be ported to checkpointctl. |
--mounts
option
I have added some details on how the output would look in the PR description. AFAIU, the tests would be added in the |
Looks good. Please also add it to the commit so that it can be seen without GitHub.
Yes, adding one or two mounts to our test data sounds like the right thing to do. Code coverage errors are being fixed in #44 @rst0git what do you think about the name |
This patch adds `--mounts` option for the checkpointctl show command. The extended output for the same would look like: checkpointctl show checkpoint.tar.gz --mounts Overview of Mounts +--------------------+--------+---------------------------+ | DESTINATION | TYPE | SOURCE | +--------------------+--------+---------------------------+ | /proc | proc | proc | | /dev | tmpfs | tmpfs | | /sys | sysfs | sysfs | | /dev/pts | devpts | devpts | | /dev/mqueue | mqueue | mqueue | | /etc/hostname | bind | ../userdata/hostname | | /run/.containerenv | bind | ../userdata/.containerenv | | /etc/resolv.conf | bind | ../userdata/resolv.conf | | /etc/hosts | bind | ../userdata/hosts | | /dev/shm | bind | ../userdata/shm | | /sys/fs/cgroup | cgroup | cgroup | +--------------------+--------+---------------------------+ Closes #40 Signed-off-by: Sankalp Acharya <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #43 +/- ##
==========================================
+ Coverage 74.50% 75.17% +0.66%
==========================================
Files 3 3
Lines 255 294 +39
==========================================
+ Hits 190 221 +31
- Misses 51 57 +6
- Partials 14 16 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
I have added the sample output in the commit as well. Also, populated the |
The
vs
We could also add an option like |
Good point. Makes sense. Then we could add a alias for stats. |
With the test added and test coverage working the results from codecov look really good now. |
Should the alias for |
No, let's do that in another PR. |
This patch adds test for the `--mounts` option for checkpointctl. Also adds '--full-paths' option to display mounts with full paths. Signed-off-by: Sankalp Acharya <[email protected]>
Looks good to me. (In @rst0git What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The
checkpointctl
tool could be extended to display an overview of mounts used by the checkpoints.This pull request adds
--mounts
option for thecheckpointctl show
command, which would extend the out to look like this:Also, a
--full-paths
option is added to display the mounts with the full paths. The output would look like this: