[pbs-devel] [PATCH proxmox-backup 2/2] api2/types: expand DATASTORE_MAP_LIST_SCHEMA description

Dominik Csapak d.csapak at proxmox.com
Thu Mar 25 11:04:41 CET 2021


and give an example

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/api2/types/mod.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/api2/types/mod.rs b/src/api2/types/mod.rs
index fb7ba816..80db98fc 100644
--- a/src/api2/types/mod.rs
+++ b/src/api2/types/mod.rs
@@ -372,7 +372,10 @@ pub const DATASTORE_MAP_ARRAY_SCHEMA: Schema = ArraySchema::new(
     .schema();
 
 pub const DATASTORE_MAP_LIST_SCHEMA: Schema = StringSchema::new(
-    "A list of Datastore mappings (or single datastore), comma separated.")
+    "A list of Datastore mappings (or single datastore), comma separated. \
+    For example 'a=b,e' maps the source datastore 'a' to target 'b and \
+    all other sources to the default 'e'. If no default is given, only the \
+    specified sources are mapped.")
     .format(&ApiStringFormat::PropertyString(&DATASTORE_MAP_ARRAY_SCHEMA))
     .schema();
 
-- 
2.20.1






More information about the pbs-devel mailing list