diff --git a/doc/config_options.txt b/doc/config_options.txt index 62ecbeb45ce2..2d68b5ec6f5f 100644 --- a/doc/config_options.txt +++ b/doc/config_options.txt @@ -2359,6 +2359,14 @@ Specify either a cron expression (` `), a comm +```{config:option} volatile..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..apply_quota instance-volatile :shortdesc: "Disk quota" :type: "string" diff --git a/lxd/metadata/configuration.json b/lxd/metadata/configuration.json index 62b7dc2b7894..b217c77fcb79 100644 --- a/lxd/metadata/configuration.json +++ b/lxd/metadata/configuration.json @@ -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.",