Skip to content

daemon/graphdriver/overlay/ fix lint errors/warnings#15014

Merged
calavera merged 1 commit intomoby:masterfrom
brahmaroutu:lint_daemon_graphdriver_overlay
Aug 7, 2015
Merged

daemon/graphdriver/overlay/ fix lint errors/warnings#15014
calavera merged 1 commit intomoby:masterfrom
brahmaroutu:lint_daemon_graphdriver_overlay

Conversation

@brahmaroutu
Copy link
Contributor

Addresses #14756
Signed-off-by: Srini Brahmaroutu srbrahma@us.ibm.com

Copy link
Member

Choose a reason for hiding this comment

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

s/custome/custom/

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch from c05616e to 47d89da Compare July 26, 2015 16:40
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to add info about an error if overlay fs isn't supported.

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch 4 times, most recently from e81922b to 14fa3ac Compare July 31, 2015 04:09
@jmorganca
Copy link
Contributor

Seems good once CI passes. No lint errors

Maybe verify if applyDiffProtoDriver and naiveDiffDriverWithApply should be exported since they are returned by exported functions.

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch 2 times, most recently from 22b1836 to ca2271b Compare August 4, 2015 19:17
@icecrime
Copy link
Contributor

icecrime commented Aug 5, 2015

Needs rebase.

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch from ca2271b to cb71295 Compare August 5, 2015 04:32
@brahmaroutu
Copy link
Contributor Author

@icecrime rebased.

@tiborvass
Copy link
Contributor

@brahmaroutu needs another rebase :(

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch from cb71295 to a94dc01 Compare August 5, 2015 23:45
@brahmaroutu
Copy link
Contributor Author

Done @tiborvass

Copy link
Contributor

Choose a reason for hiding this comment

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

applyDiffProtoDriver needs to be exported, interfaces are sometimes the exception to the rule: they are useful to be visible outside the package, so that clients that want to implement it know what methods to implement. Otherwise, how do you know what to pass to NaiveDiffDriverWithApply if you don't know that it's just a ProtoDriver with ApplyDiff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, good to spec out the interface implementation. Please review the comments. @tiborvass

@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch from a94dc01 to 242c61f Compare August 6, 2015 02:01
Copy link
Member

Choose a reason for hiding this comment

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

Should add This is required to satisfy the graphdriver.Driver interface (or is it ProtoDriver?)

@cpuguy83
Copy link
Member

cpuguy83 commented Aug 7, 2015

Couple of comments. Also needs a rebase.

Addresses moby#14756
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
@brahmaroutu brahmaroutu force-pushed the lint_daemon_graphdriver_overlay branch from 242c61f to de39442 Compare August 7, 2015 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants