From 610ca6a3c3f81358a7af4e0675513c2945f42653 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sun, 3 Nov 2024 18:34:24 +0100 Subject: [PATCH 1/2] feat: Add vboxsf --- server/handlers/fstab/fields/mountoptions.go | 4 ++++ server/root-handler/shared/indexes.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/handlers/fstab/fields/mountoptions.go b/server/handlers/fstab/fields/mountoptions.go index 2ebf666..b2e9f26 100644 --- a/server/handlers/fstab/fields/mountoptions.go +++ b/server/handlers/fstab/fields/mountoptions.go @@ -470,6 +470,10 @@ var MountOptionsMapField = map[string]optionField{ Enums: commondocumentation.UmsdosDocumentationEnums, Assignable: commondocumentation.UmsdosDocumentationAssignable, }, + "vboxsf": { + Enums: commondocumentation.VboxsfDocumentationEnums, + Assignable: commondocumentation.VboxsfDocumentationAssignable, + }, "vfat": { Enums: commondocumentation.VfatDocumentationEnums, Assignable: commondocumentation.VfatDocumentationAssignable, diff --git a/server/root-handler/shared/indexes.go b/server/root-handler/shared/indexes.go index 514d7cb..d4fc4e2 100644 --- a/server/root-handler/shared/indexes.go +++ b/server/root-handler/shared/indexes.go @@ -8,7 +8,7 @@ type LanguageOverwrite struct { Language SupportedLanguage // The start of the overwrite - Raw string + Raw string Line uint32 Character uint32 } From fd5749f594a2714a67f5dd7fe92763f36761d670 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sun, 3 Nov 2024 18:38:00 +0100 Subject: [PATCH 2/2] feat(server): Add vboxsf --- server/common-documentation/mnt-vboxsf.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 server/common-documentation/mnt-vboxsf.go diff --git a/server/common-documentation/mnt-vboxsf.go b/server/common-documentation/mnt-vboxsf.go new file mode 100644 index 0000000..a2f1020 --- /dev/null +++ b/server/common-documentation/mnt-vboxsf.go @@ -0,0 +1,22 @@ +package commondocumentation + +import docvalues "config-lsp/doc-values" + +var VboxsfDocumentationAssignable = docvalues.MergeKeyEnumAssignmentMaps(FatDocumentationAssignable, map[docvalues.EnumString]docvalues.DeprecatedValue{ + docvalues.CreateEnumStringWithDoc( + "iocharset", + "This option sets the character set used for I/O operations. Note that on Linux guests, if the iocharset option is not specified, then the Guest Additions driver will attempt to use the character set specified by the CONFIG_NLS_DEFAULT kernel option. If this option is not set either, then UTF-8 is used.", + ): docvalues.EnumValue{ + EnforceValues: true, + Values: AvailableCharsets, + }, + docvalues.CreateEnumStringWithDoc( + "convertcp", + "This option specifies the character set used for the shared folder name. This is UTF-8 by default.", + ): docvalues.EnumValue{ + EnforceValues: true, + Values: AvailableCharsets, + }, +}) + +var VboxsfDocumentationEnums = []docvalues.EnumString{}