Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions rust/agama-lib/share/examples/storage/drive_search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"storage": {
"drives": [
{ "search": "*" },
{ "search": "/dev/vda" },
{
"search": {
"condition": { "name": "/dev/vdb" },
"ifNotFound": "skip"
}
},
{
"search": {
"condition": { "size": "10 GiB" },
"ifNotFound": "error",
"max": 2
}
},
{
"search": {
"condition": {
"size": { "equal": "10 GiB" }
}
}
},
{
"search": {
"condition": {
"size": { "greater": "10 GiB" }
}
}
},
{
"search": {
"condition": {
"size": { "less": "10 GiB" }
}
}
}
]
}
}
43 changes: 43 additions & 0 deletions rust/agama-lib/share/examples/storage/md_raid_search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"storage": {
"mdRaids": [
{ "search": "*" },
{ "search": "/dev/md1" },
{
"search": {
"condition": { "name": "/dev/md2" },
"ifNotFound": "skip"
}
},
{
"search": {
"condition": { "size": "10 GiB" },
"ifNotFound": "error",
"max": 2
}
},
{
"search": {
"condition": {
"size": { "equal": "10 GiB" }
},
"ifNotFound": "create"
}
},
{
"search": {
"condition": {
"size": { "greater": "10 GiB" }
}
}
},
{
"search": {
"condition": {
"size": { "less": "10 GiB" }
}
}
}
]
}
}
120 changes: 120 additions & 0 deletions rust/agama-lib/share/examples/storage/partition_search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"storage": {
"drives": [
{
"search": "/dev/vda",
"partitions": [
{ "search": "*" },
{ "search": "/dev/vda1" },
{
"search": {
"condition": { "name": "/dev/vda2" },
"ifNotFound": "skip"
}
},
{
"search": {
"condition": { "size": "10 GiB" },
"ifNotFound": "error",
"max": 2
}
},
{
"search": {
"condition": {
"size": { "equal": "10 GiB" }
},
"ifNotFound": "create"
}
},
{
"search": {
"condition": {
"size": { "greater": "10 GiB" }
}
}
},
{
"search": {
"condition": {
"size": { "less": "10 GiB" }
}
}
},
{
"search": {
"max": 1,
"ifNotFound": "error"
},
"delete": true
},
{
"search": {
"max": 1,
"ifNotFound": "skip"
},
"deleteIfNeeded": true
}
]
}
],
"mdRaids": [
{
"search": "/dev/md1",
"partitions": [
{ "search": "*" },
{ "search": "/dev/md1-p1" },
{
"search": {
"condition": { "name": "/dev/md1-p2" },
"ifNotFound": "skip"
}
},
{
"search": {
"condition": { "size": "10 GiB" },
"ifNotFound": "error",
"max": 2
}
},
{
"search": {
"condition": {
"size": { "equal": "10 GiB" }
},
"ifNotFound": "create"
}
},
{
"search": {
"condition": {
"size": { "greater": "10 GiB" }
}
}
},
{
"search": {
"condition": {
"size": { "less": "10 GiB" }
}
}
},
{
"search": {
"max": 1,
"ifNotFound": "error"
},
"delete": true
},
{
"search": {
"max": 1,
"ifNotFound": "skip"
},
"deleteIfNeeded": true
}
]
}
]
}
}
Loading
Loading