Skip to content

Conversation

@AkihiroSuda
Copy link
Member

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

// Path specifies the path from the bundle root. If more than one
// path is present, the entry may represent a hardlink, rather than using
// a link target. The path format is operating system specific.
// Path MAY be an absolute path, but it MUST be interpreted with the bundle root.
Copy link
Member Author

Choose a reason for hiding this comment

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

current manifest_test.go uses relative path but continuity build uses absolute path.
Suggestion: can we prohibit absolute path for ease of robust implementation?

Copy link
Member Author

Choose a reason for hiding this comment

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

@stevvooe WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Do we need to have a change to make this work, as well?

Copy link
Member

Choose a reason for hiding this comment

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

We should always be using relative paths for continuity.

// On Unix, gid MUST be a positive decimal integer or an empty string.
string gid = 3;

// User and group specify the user name and the group name for the resource.
Copy link
Member

Choose a reason for hiding this comment

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

These fields aren't used, so this definition is meaningless.

// Uid specifies the user id for the resource. A string type is used for
// compatibility across different OS.
// On Unix, uid MUST be a positive decimal integer or an empty string.
string uid = 2;
Copy link
Member

Choose a reason for hiding this comment

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

Let's just change these to integers. Windows aren't gonna use these, so they'll always be integers. Use int64.

Copy link
Member Author

Choose a reason for hiding this comment

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

  • not uint64?
  • please elaborate your plan for windows?

Copy link
Member

Choose a reason for hiding this comment

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

please elaborate your plan for windows?

You'll have to ask the microsoft folks, but they made the indication that we are going to use separate fields for that purpose. The only reason these are strings is due to the fact Windows has string user ids.

not uint64?

Don't use integer types to enforce signedness.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

thank you, will update soon

@AkihiroSuda
Copy link
Member Author

updated PR and opened #77 for unstringifying uid&gid

@stevvooe
Copy link
Member

@AkihiroSuda Paths should be relative.

@AkihiroSuda
Copy link
Member Author

ok, I will open a PR in a few days

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

updated PR, and opened #82

@stevvooe
Copy link
Member

stevvooe commented Jun 7, 2017

LGTM

@stevvooe stevvooe merged commit cddc22c into containerd:master Jun 7, 2017
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.

3 participants