Skip to content

spec: default field sizes; clarify OPTIONAL fields #132

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

Merged
merged 2 commits into from
Nov 9, 2017

Conversation

jdef
Copy link
Member

@jdef jdef commented Nov 1, 2017

As discussed in the CSI WG meeting on 2017-10-31, a "general field size" clause has been added to the spec. Also, language clarifying the intent and purpose of zero-values for OPTIONAL fields has been added to fields as appropriate.

@jdef
Copy link
Member Author

jdef commented Nov 1, 2017

No changes for OPTIONAL error code fields since revisions for the error code section are WIP.

@jdef jdef requested review from jieyu and saad-ali November 1, 2017 08:04
@jdef jdef added this to the v0.1 milestone Nov 1, 2017
spec.md Outdated
|------------|---------------------|
| 128 bytes | string |
| 4 KiB | map<string, string> |
| 4 KiB | repeated string |
Copy link
Member

Choose a reason for hiding this comment

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

As part of the change you did in #133, node_ids will be repeated string as well. If we limit this, we'll introduce a limit for the number of nodes this spec can handle. I'd suggest we remove this limitation here. Instead, explicitly mention that mount_flags has a limit of 4K bytes.

@jdef jdef force-pushed the jdef_size_limits branch from dd6510f to 37c8ba0 Compare November 2, 2017 12:30
Copy link
Member

@jieyu jieyu left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@julian-hj julian-hj left a comment

Choose a reason for hiding this comment

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

👍

@jdef jdef merged commit 8cdd078 into container-storage-interface:master Nov 9, 2017
@jdef jdef deleted the jdef_size_limits branch November 9, 2017 16:29
uint64 capacity_bytes = 1;

// Contains identity information for the created volume. This field is
// REQUIRED. The identity information will be used by the CO in
// subsequent calls to refer to the provisioned volume. This field
// should not exceed 1MiB.
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @jdef,

I just want to be clear that the ID string previously would be allowed a field size of 1MiB, but according to the spec today the volume ID is now limited to 128 bytes. Is that correct?

@jdef
Copy link
Member Author

jdef commented Feb 3, 2018 via email

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.

spec: clarify expectations and reduce recommended size of volume ID Wrapping OPTIONAL fields in proto3.
5 participants