From 9ee6693c0de1bc6702ef2a57c88d994e73e23da1 Mon Sep 17 00:00:00 2001 From: Gabriel Mougard Date: Fri, 5 Jan 2024 12:11:45 +0100 Subject: [PATCH] lxd/metadata: update metadata configuration Signed-off-by: Gabriel Mougard --- doc/config_options.txt | 6 ++++++ lxd/metadata/configuration.json | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/doc/config_options.txt b/doc/config_options.txt index 405feba1341f..fdbb467a6591 100644 --- a/doc/config_options.txt +++ b/doc/config_options.txt @@ -778,6 +778,12 @@ Specify either a cron expression (` `), a comm +```{config:option} volatile...dir_created_by_lxd instance-volatile +:shortdesc: "if the disk device mounted from a host directory, created a new directory within the instance" +:type: "bool" + +``` + ```{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 288eaec3e101..7bfeccf98d3f 100644 --- a/lxd/metadata/configuration.json +++ b/lxd/metadata/configuration.json @@ -824,6 +824,13 @@ }, "volatile": { "keys": [ + { + "volatile.\u003cname\u003e.\u003ctarget_path\u003e.dir_created_by_lxd": { + "longdesc": "", + "shortdesc": "if the disk device mounted from a host directory, created a new directory within the instance", + "type": "bool" + } + }, { "volatile.\u003cname\u003e.apply_quota": { "longdesc": "The disk quota is applied the next time the instance starts.",