Skip to content

Commit

Permalink
schema: fix FileMode type
Browse files Browse the repository at this point in the history
Signed-off-by: Iceber Gu <[email protected]>
  • Loading branch information
Iceber committed Feb 15, 2021
1 parent f1164e5 commit 428ed6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@
"$ref": "defs.json#/definitions/int64"
},
"FileMode": {
"description": "File permissions mode (typically an octal value)",
"description": "File mode (typically an octal value)",
"type": "integer",
"minimum": 0,
"maximum": 512
"maximum": 4096
},
"FileType": {
"description": "Type of a block or special character device",
Expand Down
2 changes: 1 addition & 1 deletion specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ type LinuxDevice struct {
Major int64 `json:"major"`
// Minor is the device's minor number.
Minor int64 `json:"minor"`
// FileMode permission bits for the device.
// File mode bits for the device.
FileMode *os.FileMode `json:"fileMode,omitempty"`
// UID of the device.
UID *uint32 `json:"uid,omitempty"`
Expand Down

0 comments on commit 428ed6b

Please sign in to comment.