Skip to content

Add mem function to KV_RO implementation.#99

Merged
yomimono merged 1 commit intomirage:masterfrom
yomimono:mem-in-kvro
Oct 3, 2016
Merged

Add mem function to KV_RO implementation.#99
yomimono merged 1 commit intomirage:masterfrom
yomimono:mem-in-kvro

Conversation

@yomimono
Copy link
Copy Markdown
Contributor

@yomimono yomimono commented Oct 2, 2016

I suspect that translating any errors to Unknown_key is wrong and would appreciate any suggestions or followon PRs with better behavior.

@yomimono
Copy link
Copy Markdown
Contributor Author

yomimono commented Oct 3, 2016

I'd prefer for an ocaml-9p maintainer to take a look at this rather than merging myself. That said, I'm about to merge the mirage changes that necessitate this change, so if there are edits to this PR necessary it'd be nice to hear about them soon.

@yomimono yomimono merged commit 276927e into mirage:master Oct 3, 2016
@yomimono
Copy link
Copy Markdown
Contributor Author

yomimono commented Oct 3, 2016

...having just said that, I just hit merge by mistake. Please revert or ask for additional changes if you like.

stat t path
>>= function
| Ok stat -> return (`Ok true)
| _ -> return (`Ok false)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The official 9p-approved way is to match on the error string I believe :-( Would be nice if the 9p client could map strings back to something sensible.

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.

2 participants