Skip to content

Commit

Permalink
lxd/metadata: update metadata configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Mar 25, 2024
1 parent 80509aa commit a97f1d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/config_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,14 @@ Specify either a cron expression (`<minute> <hour> <dom> <month> <dow>`), a comm

<!-- config group instance-snapshots end -->
<!-- config group instance-volatile start -->
```{config:option} volatile.<disk_dev_name>.last_state.created instance-volatile
:shortdesc: "Path of the directory created from mounting a `disk` device"
:type: "string"
If mounting a host directory through a `disk` device creates the target directory, this option contains the path of this newly created target directory.
For example, if the target directory is `/opt` and `/opt` already exists in the instance, this key is not set.
However, if the target directory is `/opt/foo` and `/opt/foo` doesn't exist in the instance, this key is set to `/opt/foo`.
```

```{config:option} volatile.<name>.apply_quota instance-volatile
:shortdesc: "Disk quota"
:type: "string"
Expand Down
7 changes: 7 additions & 0 deletions lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,13 @@
},
"volatile": {
"keys": [
{
"volatile.\u003cdisk_dev_name\u003e.last_state.created": {
"longdesc": "If mounting a host directory through a `disk` device creates the target directory, this option contains the path of this newly created target directory.\nFor example, if the target directory is `/opt` and `/opt` already exists in the instance, this key is not set.\nHowever, if the target directory is `/opt/foo` and `/opt/foo` doesn't exist in the instance, this key is set to `/opt/foo`.",
"shortdesc": "Path of the directory created from mounting a `disk` device",
"type": "string"
}
},
{
"volatile.\u003cname\u003e.apply_quota": {
"longdesc": "The disk quota is applied the next time the instance starts.",
Expand Down

0 comments on commit a97f1d4

Please sign in to comment.