-
Notifications
You must be signed in to change notification settings - Fork 142
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
runtime: add linux default fs validation #121
runtime: add linux default fs validation #121
Conversation
|
||
for fs, fstype := range defaultFS { | ||
if !(mountsMap[fs] == fstype) { | ||
return fmt.Errorf("%v must exists and expected type is %v", fs, fstype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: “exists” → “exist”.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks.
On Thu, Jun 23, 2016 at 09:11:21AM -0700, Ma Shimiao wrote:
This looks ok to me, although there are fuzzy corner cases if |
e2b3180
to
258adc8
Compare
As smoe validations related to linux os, splited linux-specific valdiations |
On Fri, Jun 24, 2016 at 07:16:22PM -0700, Ma Shimiao wrote:
258adc8 itself looks good for me (except for “valdations” → I'm still not convinced that the current spec wording is enforcable |
258adc8
to
798d84f
Compare
fixed valdations->validations |
defaultFS = map[string]string{ | ||
"/proc": "proc", | ||
"/sys": "sysfs", | ||
"dev/pts": "devpts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change "dev/pts" to /dev/pts ?
same with "dev/shm"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
798d84f
to
e4b2183
Compare
ping @liangchenye @mrunalp |
e4b2183 LGTM |
LGTM |
Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com