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

cmd/torusblk: implemenet NBD TCP server #202

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

mischief
Copy link
Contributor

@mischief mischief commented Jun 2, 2016

No description provided.

@mischief mischief force-pushed the nbdserver branch 4 times, most recently from ffd297d to b64e7e6 Compare June 2, 2016 23:03
return nil, err
}

dev, err := blockvol.OpenBlockFile()
Copy link
Contributor

Choose a reason for hiding this comment

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

return blockvol.OpenBlockFile() ?

@mischief
Copy link
Contributor Author

mischief commented Jun 3, 2016

ptal

@mischief
Copy link
Contributor Author

mischief commented Jun 3, 2016

test flaked, see #212/#221

const (
nbdMagic uint64 = 0x4e42444d41474943
nbdOpts uint64 = 0x49484156454F5054
nbdRequestSize = (4 + 4 + 8 + 8 + 4)
Copy link
Contributor

Choose a reason for hiding this comment

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

a simple comment for the bytes like 4 4 8 8 4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused now, ill drop it.

@xiang90
Copy link
Contributor

xiang90 commented Jun 3, 2016

minor issues. look good to me.

@mischief
Copy link
Contributor Author

mischief commented Jun 3, 2016

ptal

@xiang90
Copy link
Contributor

xiang90 commented Jun 3, 2016

LGTM

@mischief mischief merged commit e301a58 into coreos:master Jun 3, 2016
@mischief mischief deleted the nbdserver branch June 3, 2016 22:13
@barakmich barakmich mentioned this pull request Jun 3, 2016
@barakmich barakmich mentioned this pull request Jun 14, 2016
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.

2 participants