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

config: clarify source mount #981

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

alban
Copy link
Contributor

@alban alban commented Jul 27, 2018

  • The 'source' of a bind mount can either be a file or a directory.

  • The 'type' field is a dummy in case of bind mounts, often left to
    "none" (in that case it does not have to be something listed in
    /proc/filesystems).

  • 'Relative' paths can only be used for bind mounts, not for other
    mounts. That's how runc manages this.

Replaces: #967

Signed-off-by: Alban Crequy alban@kinvolk.io

- The 'source' of a bind mount can either be a file or a directory.

- The 'type' field is a dummy  in case of bind mounts, often left to
"none" (in that case it does not have to be something listed in
/proc/filesystems).

- 'Relative' paths can only be used for bind mounts, not for other
mounts. That's how runc manages this.

Replaces: opencontainers#967

Signed-off-by: Alban Crequy <alban@kinvolk.io>
@crosbymichael
Copy link
Member

crosbymichael commented Jul 27, 2018

LGTM

Approved with PullApprove

@tianon
Copy link
Member

tianon commented Jul 27, 2018

@cyphar I seem to recall you had opinions around this, do I remember correctly? 😅

@flx42
Copy link

flx42 commented Jul 27, 2018

For bind:
#878
#954
#967

@vbatts
Copy link
Member

vbatts commented Sep 13, 2018

LGTM

Approved with PullApprove

@vbatts vbatts merged commit 5806c35 into opencontainers:master Sep 13, 2018
@@ -100,7 +101,7 @@ On all other platforms, this field is REQUIRED.
For POSIX platforms the `mounts` structure has the following fields:

* **`type`** (string, OPTIONAL) The type of the filesystem to be mounted.
* Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
* Linux: filesystem types supported by the kernel as listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660"). For bind mounts (when `options` include either `bind` or `rbind`), the type is a dummy, often "none" (not listed in */proc/filesystems*).
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to recomment none? Why not just leave this OPTIONAL property unset in that case?

@vbatts
Copy link
Member

vbatts commented Sep 13, 2018 via email

@dongsupark dongsupark deleted the alban/source-mount branch September 14, 2018 13:54
@vbatts vbatts mentioned this pull request Jan 9, 2020
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.

6 participants