Merge pull request #28 from Myzel394/add-vboxsf

This commit is contained in:
Myzel394 2024-11-03 18:40:38 +01:00 committed by GitHub
commit a32900cef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 1 deletions

View File

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

View File

@ -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,