Repository navigation
Add media, mount and unmount to the nanokvm command - #71
Open
antoniovazquezblanco wants to merge 1 commit into
Open
antoniovazquezblanco wants to merge 1 commit into
antoniovazquezblanco wants to merge 1 commit into
Conversation
'media' lists what can be mounted and marks the mounted medium. From non-Pro 2.5.3 the commands use the storage API: images go by their path in the media directory, the shared data partition is listed too and 'mount' without an image attaches it, and --force takes the disk back from a target that holds it. On older firmware and on the Pro, where the client refuses that API, they use the image API; there the command refuses the partition and --force instead of doing something else. Device errors now print the device's reason after the code, so a refused mount says why.
Collaborator
|
Tested on a Pro (application 1.2.15) and a PCIe (non-Pro 2.5.4), with small test ISOs that I uploaded and deleted afterwards.
One thing on the Pro: |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
'media' lists what can be mounted and marks the mounted medium. From non-Pro 2.5.3 the commands use the storage API: images go by their path in the media directory, the shared data partition is listed too and 'mount' without an image attaches it, and --force takes the disk back from a target that holds it. On older firmware and on the Pro, where the client refuses that API, they use the image API; there the command refuses the partition and --force instead of doing something else.
Device errors now print the device's reason after the code, so a refused mount says why.