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

Add 9pfs backend to vbds #4561

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Conversation

benjamreis
Copy link
Contributor

This allow to use a file path towards a folder instead of a VHD

Signed-off-by: BenjiReis benjamin.reis@vates.fr

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Unless we add a lot more backend types I thinks it's fine to stick with strings and lists to to represent them.

ocaml/xenopsd/xc/device_common.ml Show resolved Hide resolved
This allow to use a file path towards a folder instead of a VHD

Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
Co-authored-by: Ronan Abhamon <ronan.abhamon@vates.fr>
@benjamreis
Copy link
Contributor Author

Hi!

Since it has been validated a long time, can a 2nd person take a look at this to validate/ask for change? :)

Thanks

@@ -329,6 +329,8 @@ let params_of_backend backend =
(path, [])
| _, _, {uri} :: _, xendisk :: _ ->
(uri, [("qemu-params", xendisk.Storage_interface.params)])
| _, _, _, xendisk :: _ ->
("", [("qemu-params", xendisk.Storage_interface.params)])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the URI replaced by the empty string?

Copy link
Contributor

@edwintorok edwintorok Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No support for spawning nbd I assume, because this is a filesystem, and NOT a block device.

@edwintorok edwintorok merged commit 5ca8c6c into xapi-project:master Apr 13, 2022
@benjamreis benjamreis deleted the add_9pfs_backend branch April 14, 2022 14:06
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.

4 participants