Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

block/aoe, cmd/torusblk: allow AoE server major and minor address con… #181

Merged
merged 1 commit into from
Jun 1, 2016
Merged

block/aoe, cmd/torusblk: allow AoE server major and minor address con… #181

merged 1 commit into from
Jun 1, 2016

Conversation

mdlayher
Copy link
Contributor

@mdlayher mdlayher commented Jun 1, 2016

…figuration

Tested with two volumes.

$ torusctl volume list             
+-------------+---------+
| VOLUME NAME |  SIZE   |
+-------------+---------+
| vol01       | 2.0 GiB |
| vol02       | 4.0 GiB |
+-------------+---------+
$ sudo torusblk aoe vol01 br0 1 1
$ sudo torusblk aoe vol02 br0 1 2 
$ sudo aoe-stat
      e1.1         2.147GB       eth1 8704  up            
      e1.2         4.294GB       eth1 8704  up

Feel free to point out stylistic issues as I'm not yet familiar with the project. I just use the typical tools like golint, go vet, etc.


major, err := strconv.ParseUint(maj, 10, 16)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to parse major address %q: %v\n", maj, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

these checks should exit - you can call die() defined in main.go

@barakmich
Copy link
Contributor

barakmich commented Jun 1, 2016

LGTM. Beautiful first public PR. (pending nits)

@barakmich barakmich merged commit 043ff77 into coreos:master Jun 1, 2016
@mdlayher mdlayher deleted the aoe-major-minor branch June 1, 2016 21:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants