Closed echa closed 5 years ago
@echa Thanks for the PR ! Will take a look soon.
Also adding @rhatdan to take another look.
@echa Once you fix these review comments, can you also squash your commits into one ? If you are new to squashing, here is a link to help https://github.com/todotxt/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit
Also an example in your scenario would be:
1) Right now your git log
has 5 commits.
529c479b545e2502dbc3ee123dd0de020d9a8a46 revert err definition
35d87e9efd6f784ffd12ec513e1c05c161228680 err on removing unmanaged volume
11ea6272655cebdcb0edefe5942dea62ba267f8e update docu and manpage
946e3bb30b595b170cc4fe5efa7df4102abee729 make vg selection compatible with legacy lvmVolumesConfig.json
230ab1c60e4a662b0a062548c9879b5febcf2c51 add optional argument to select volume group
2) To squash all your commits into 230ab1c60e4a662b0a062548c9879b5febcf2c51
you can do:
git rebase -i HEAD~5
3) You will get an interactive editor:
Leave the first pick
as it is, and replace the rest of the pick
with s
s = squash.
Save your changes.
4) It will take you to a second interactive screen, where you can set your commit message.
Remove everything else except your commit message:
Add optional argument to select volume group
(Change a to A)
Save your changes.
5) Force push your branch to github.
git push -u origin master -f
Here `origin` is your fork.
Thanks for being patient ! I think we are pretty close to merging now. PS: Just FYI, You will have 6 commits, once you fix these review comments.
@echa Any updates on this one ?
Closing this in favor of #79
/cc @rhatdan @echa
This PR adds a new option
vg
that allows to specify a volume group different from the default defined in/etc/docker/docker-lvm-plugin
at a per-volume basis. The volume group is also stored in/var/lib/docker-lvm-plugin/lvmVolumesConfig.json
to have it available for volume mount and remove operations.Usage
This PR should also resolve #7 since it provides a convenient way to specify a volume group on docker command line, in docker-compose and other docker config files (swarm, etc).
Tested and works with Docker 1.13.1 on CentOS 7.4.