From 851ed6322f9be6b89d6071d3b0f04745a40fa07e Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 29 Nov 2021 10:07:34 -0500 Subject: [PATCH] docs: `mount_flags` takes a slice of strings (#11583) The `mount_flags` option takes a slice of strings, not a comma-separated string like the flags passed to `mount(8)`. --- website/content/docs/job-specification/volume.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/docs/job-specification/volume.mdx b/website/content/docs/job-specification/volume.mdx index cff31a8dd..b33c0536b 100644 --- a/website/content/docs/job-specification/volume.mdx +++ b/website/content/docs/job-specification/volume.mdx @@ -42,7 +42,7 @@ job "docs" { mount_options { fs_type = "ext4" - mount_flags = "noatime" + mount_flags = ["noatime"] } } } @@ -106,7 +106,7 @@ The following fields are only valid for volumes with `type = "csi"`: necessary. - `fs_type`: file system type (ex. `"ext4"`) - - `mount_flags`: the flags passed to `mount` (ex. `"ro,noatime"`) + - `mount_flags`: the flags passed to `mount` (ex. `["ro", "noatime"]`) ## Volume Interpolation