Skip to content

Commit 4661b21

Browse files
committed
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) <[email protected]>
1 parent da9240a commit 4661b21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ type Resources struct {
167167
}
168168

169169
type Device struct {
170-
// Device type, block, char, etc.
171-
Type rune `json:"type"`
172170
// Path to the device.
173171
Path string `json:"path"`
172+
// Device type, block, char, etc.
173+
Type rune `json:"type"`
174174
// Major is the device's major number.
175175
Major int64 `json:"major"`
176176
// Minor is the device's minor number.

0 commit comments

Comments
 (0)