Change Device field order in spec_linux.go, 'Path' should be top of the 'Type' field, according to the different of the config-linux.md, 'Path' field is the unique key.

Signed-off-by: LinZhinan(Zen Lin) <linzhinan@huawei.com>
This commit is contained in:
LinZhinan(Zen Lin) 2015-08-11 15:05:29 +08:00
parent da9240a712
commit 4661b21676
1 changed files with 2 additions and 2 deletions

View File

@ -167,10 +167,10 @@ type Resources struct {
}
type Device struct {
// Device type, block, char, etc.
Type rune `json:"type"`
// Path to the device.
Path string `json:"path"`
// Device type, block, char, etc.
Type rune `json:"type"`
// Major is the device's major number.
Major int64 `json:"major"`
// Minor is the device's minor number.