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

Allow mounting of multiple volumes to mount properties #2264

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Aug 30, 2016

What does this PR do?

allow to specify multiples volumes to mount for all mount properties
includingche.properties machine.server.extra.volume property

New behavior

Volumes names can be separated by semi colon character ;
machine.server.extra.volume=/tmp/foo:/tmp/foo;/tmp/dummy:/tmp.dummy

PR type

  • Minor change = no change to existing features or docs

Minor change checklist

  • New API required? no
  • API updated
  • Tests provided / updated
  • Tests passed

Change-Id: Ic029b47511f784d41e906e0c2b570869466f605e
Signed-off-by: Florent BENOIT fbenoit@codenvy.com

@codenvy-ci
Copy link

Build # 251 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/251/ to view the results.

@benoitf benoitf mentioned this pull request Aug 30, 2016
28 tasks
@TylerJewell
Copy link

+1 - this is a huge improvement. Opens up many use cases for adoption.

@benoitf
Copy link
Contributor Author

benoitf commented Aug 30, 2016

about separator, currently it's tab character.

I could replace it with another character but I've seen in mount syntax that
: ; , # were used

so if someone has an idea of a character never used inside mount syntax ?
or if we replace by more than one character

@bmicklea bmicklea mentioned this pull request Aug 30, 2016
57 tasks
@TylerJewell
Copy link

I did a search and ext4 file systems allow anything but null and forward-slash / in their names. So using \t is as good as anything. So I either propose a tab or a colon ":" as the separator. I think colon is easier to read.

@garagatyi
Copy link

Colon is used for setting read-write access to volumes. I suggest semicolon. Tab is not so easy to recognize because it can be confused with several spaces.

@benoitf
Copy link
Contributor Author

benoitf commented Aug 31, 2016

@garagatyi as I said in my initial comment, semicolon is used for some syntax

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/mount_smbfs.8.html
(after domain)

mount_smbfs [-N] [-o options] [-d mode] [-f mode] [-h] //[domain;][user[:password]@]server[/share] path

@benoitf
Copy link
Contributor Author

benoitf commented Aug 31, 2016

what is the status ? I keep tab, I use semi colon ? I merge ?

@TylerJewell
Copy link

Lets gow ith semicolon.

Note: it could be used for machine.server.extra.volume for example

Change-Id: Ic029b47511f784d41e906e0c2b570869466f605e
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf benoitf merged commit 8e39f7b into eclipse-che:master Aug 31, 2016
@benoitf benoitf added this to the 4.8.0 milestone Aug 31, 2016
@benoitf benoitf added the kind/enhancement A feature request - must adhere to the feature request template. label Aug 31, 2016
@benoitf benoitf self-assigned this Aug 31, 2016
@bmicklea bmicklea changed the title Allow to use multiple volumes with tab to separate the values Allow mounting of multiple volumes to mount properties Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants