diff --git a/learn/file-system.md b/learn/file-system.md index 24b77fda..65048d03 100644 --- a/learn/file-system.md +++ b/learn/file-system.md @@ -346,54 +346,53 @@ The resulting schema is quite large: }, "required": [ "type", "device" ], "additionalProperties": false - } - }, - "diskUUID": { - "properties": { - "type": { - "enum": [ "disk" ] - }, - "label": { - "type": "string", - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - } }, - "required": [ "type", "label" ], - "additionalProperties": false - }, - "nfs": { - "properties": { - "type": { "enum": [ "nfs" ] }, - "remotePath": { - "type": "string", - "pattern": "^(/[^/]+)+$" + "diskUUID": { + "properties": { + "type": { + "enum": [ "disk" ] + }, + "label": { + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + } }, - "server": { - "type": "string", - "oneOf": [ - { "format": "hostname" }, - { "format": "ipv4" }, - { "format": "ipv6" } - ] - } + "required": [ "type", "label" ], + "additionalProperties": false }, - "required": [ "type", "server", "remotePath" ], - "additionalProperties": false - }, - "tmpfs": { - "properties": { - "type": { "enum": [ "tmpfs" ] }, - "sizeInMB": { - "type": "integer", - "minimum": 16, - "maximum": 512 - } + "nfs": { + "properties": { + "type": { "enum": [ "nfs" ] }, + "remotePath": { + "type": "string", + "pattern": "^(/[^/]+)+$" + }, + "server": { + "type": "string", + "oneOf": [ + { "format": "hostname" }, + { "format": "ipv4" }, + { "format": "ipv6" } + ] + } + }, + "required": [ "type", "server", "remotePath" ], + "additionalProperties": false }, - "required": [ "type", "sizeInMB" ], - "additionalProperties": false + "tmpfs": { + "properties": { + "type": { "enum": [ "tmpfs" ] }, + "sizeInMB": { + "type": "integer", + "minimum": 16, + "maximum": 512 + } + }, + "required": [ "type", "sizeInMB" ], + "additionalProperties": false + } } } -} ``` ## Referencing the `entry` schema in the `fstab` schema