mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 07:25:27 +02:00

Related to #3 Add mount options for `devpts`, `fat`, `hfs`, and `hpfs` filesystems. * **common-documentation/filesystems/mountoptions/devpts.go** - Implement mount options for `devpts` filesystem. - Export `DevptsDocumentationAssignable` and `DevptsDocumentationEnums` variables. * **common-documentation/filesystems/mountoptions/fat.go** - Implement mount options for `fat` filesystem. - Export `FatDocumentationAssignable` and `FatDocumentationEnums` variables. * **common-documentation/filesystems/mountoptions/hfs.go** - Implement mount options for `hfs` filesystem. - Export `HfsDocumentationAssignable` and `HfsDocumentationEnums` variables. * **common-documentation/filesystems/mountoptions/hpfs.go** - Implement mount options for `hpfs` filesystem. - Export `HpfsDocumentationAssignable` and `HpfsDocumentationEnums` variables. * **handlers/fstab/documentation/documentation-mountoptions.go** - Add entries for `devpts`, `fat`, `hfs`, and `hpfs` filesystems in `MountOptionsMapField`.
55 lines
2.0 KiB
Go
55 lines
2.0 KiB
Go
package commondocumentation
|
|
|
|
import docvalues "config-lsp/doc-values"
|
|
|
|
var HfsDocumentationAssignable = map[docvalues.EnumString]docvalues.Value{
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"creator",
|
|
"Set the creator/type values as shown by the MacOS finder used for creating new files. Default values: '????'.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"type",
|
|
"Set the creator/type values as shown by the MacOS finder used for creating new files. Default values: '????'.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"uid",
|
|
"Set the owner and group of all files. (Default: the UID and GID of the current process.)",
|
|
): docvalues.UIDValue{
|
|
EnforceUsingExisting: true,
|
|
},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"gid",
|
|
"Set the owner and group of all files. (Default: the UID and GID of the current process.)",
|
|
): docvalues.GIDValue{
|
|
EnforceUsingExisting: true,
|
|
},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"dir_umask",
|
|
"Set the umask used for all directories. Defaults to the umask of the current process.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"file_umask",
|
|
"Set the umask used for all regular files. Defaults to the umask of the current process.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"umask",
|
|
"Set the umask used for all files and directories. Defaults to the umask of the current process.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"session",
|
|
"Select the CDROM session to mount. Defaults to leaving that decision to the CDROM driver. This option will fail with anything but a CDROM as underlying device.",
|
|
): docvalues.StringValue{},
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"part",
|
|
"Select partition number n from the device. Only makes sense for CDROMs. Defaults to not parsing the partition table at all.",
|
|
// TODO: Probably NumberValue
|
|
): docvalues.StringValue{},
|
|
}
|
|
|
|
var HfsDocumentationEnums = []docvalues.EnumString{
|
|
docvalues.CreateEnumStringWithDoc(
|
|
"quiet",
|
|
"Don't complain about invalid mount options.",
|
|
),
|
|
}
|