From 0a67d87e9245100693661eef915a1b4e7b4c3f5e Mon Sep 17 00:00:00 2001 From: Majid Garoosi Date: Wed, 18 Oct 2023 00:34:30 +0330 Subject: [PATCH] doc: improve comments in StorageClass example The comments of mkfsOptions and mountOptions are modified to match the real behavior of the code. Signed-off-by: Majid Garoosi --- examples/rbd/storageclass.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/rbd/storageclass.yaml b/examples/rbd/storageclass.yaml index 0e476fa2b19..ca7fc9a7247 100644 --- a/examples/rbd/storageclass.yaml +++ b/examples/rbd/storageclass.yaml @@ -44,7 +44,7 @@ parameters: # # The default options depend on the csi.storage.k8s.io/fstype setting: # - ext4: "-m0 -Enodiscard,lazy_itable_init=1,lazy_journal_init=1" - # - xfs: "-onouuid -K" + # - xfs: "-K" # # mkfsOptions: "-m0 -Ediscard -i1024" @@ -163,5 +163,7 @@ parameters: # objectSize: <> reclaimPolicy: Delete allowVolumeExpansion: true + +# If filesystem is xfs, nouuid will be automatically added to mountOptions mountOptions: - discard