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

Module naming #70

Open
6 tasks
cfcs opened this issue Dec 4, 2017 · 4 comments
Open
6 tasks

Module naming #70

cfcs opened this issue Dec 4, 2017 · 4 comments
Assignees

Comments

@cfcs
Copy link

cfcs commented Dec 4, 2017

The modules are currently named like

  • Block
  • Block_request
  • Blkback
  • Blkproto
  • Blkfront
  • Device_state

This is inconsistent with the Mirage_block_* modules exposed in mirage-block,
and it also differs from the pattern of for example mirage-block-ramdisk which exposes Mirage_block_ramdisk (that one also exposes Ramdisk, but oh well).

@yomimono
Copy link
Contributor

yomimono commented Jan 5, 2018

We could probably stand to rethink what's exposed by mirage-block-xen.

AFAIK there are no external users of the .back sublibrary, where Blkback and Block_request are, nor Blkproto and Device_number in mirage-block-xen. The .front sublibrary is used by mirage, but Blkfront isn't directly referenced in the main.ml generated by mirage (rather Block), so that naming could change also (perhaps just rename Blkfront to Block).

@djs55 and @avsm for fact-checking on users of mirage-block-xen ; opam list --depends-on mirage-block-xen gets nothing, but I may overlooking something.

@avsm
Copy link
Member

avsm commented Jan 14, 2019

I think this is right -- there are very few external users since the uses are various xapi unikernels (which can be adapted if needed). I'll take a look at wrapping this library up entirely when I refresh it to remove dependency on the OS module.

@avsm avsm self-assigned this Jan 14, 2019
@djs55
Copy link
Member

djs55 commented Jan 15, 2019 via email

@cfcs
Copy link
Author

cfcs commented Jan 15, 2019

I think modules in libraries should try not to pick names like Block that applications might reasonably want to use, at least while it's still a pain to have clashing names (until we get some kind of namespacing), but I agree with the rest of your comments @yomimono @avsm @djs55 :) -- IIRC what made me open this issue was that I had trouble compiling my unikernel because I had my own module also called Block, which prompted me to look for the other one :)

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

No branches or pull requests

4 participants