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{} 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 }