Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit ebb3e1b

Browse files
committed
Fix formatting of the full fstab schema
1 parent 2bdd307 commit ebb3e1b

File tree

1 file changed

+41
-42
lines changed

1 file changed

+41
-42
lines changed

learn/file-system.md

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -346,54 +346,53 @@ The resulting schema is quite large:
346346
},
347347
"required": [ "type", "device" ],
348348
"additionalProperties": false
349-
}
350-
},
351-
"diskUUID": {
352-
"properties": {
353-
"type": {
354-
"enum": [ "disk" ]
355-
},
356-
"label": {
357-
"type": "string",
358-
"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}$"
359-
}
360349
},
361-
"required": [ "type", "label" ],
362-
"additionalProperties": false
363-
},
364-
"nfs": {
365-
"properties": {
366-
"type": { "enum": [ "nfs" ] },
367-
"remotePath": {
368-
"type": "string",
369-
"pattern": "^(/[^/]+)+$"
350+
"diskUUID": {
351+
"properties": {
352+
"type": {
353+
"enum": [ "disk" ]
354+
},
355+
"label": {
356+
"type": "string",
357+
"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}$"
358+
}
370359
},
371-
"server": {
372-
"type": "string",
373-
"oneOf": [
374-
{ "format": "hostname" },
375-
{ "format": "ipv4" },
376-
{ "format": "ipv6" }
377-
]
378-
}
360+
"required": [ "type", "label" ],
361+
"additionalProperties": false
379362
},
380-
"required": [ "type", "server", "remotePath" ],
381-
"additionalProperties": false
382-
},
383-
"tmpfs": {
384-
"properties": {
385-
"type": { "enum": [ "tmpfs" ] },
386-
"sizeInMB": {
387-
"type": "integer",
388-
"minimum": 16,
389-
"maximum": 512
390-
}
363+
"nfs": {
364+
"properties": {
365+
"type": { "enum": [ "nfs" ] },
366+
"remotePath": {
367+
"type": "string",
368+
"pattern": "^(/[^/]+)+$"
369+
},
370+
"server": {
371+
"type": "string",
372+
"oneOf": [
373+
{ "format": "hostname" },
374+
{ "format": "ipv4" },
375+
{ "format": "ipv6" }
376+
]
377+
}
378+
},
379+
"required": [ "type", "server", "remotePath" ],
380+
"additionalProperties": false
391381
},
392-
"required": [ "type", "sizeInMB" ],
393-
"additionalProperties": false
382+
"tmpfs": {
383+
"properties": {
384+
"type": { "enum": [ "tmpfs" ] },
385+
"sizeInMB": {
386+
"type": "integer",
387+
"minimum": 16,
388+
"maximum": 512
389+
}
390+
},
391+
"required": [ "type", "sizeInMB" ],
392+
"additionalProperties": false
393+
}
394394
}
395395
}
396-
}
397396
```
398397

399398
## <a name="referencing-entry"></a>Referencing the `entry` schema in the `fstab` schema

0 commit comments

Comments
 (0)