Skip to content

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 [email protected]

- 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 <[email protected]>
@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

* **`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