Myzel394 131f80fe4c Add more mount options to common-documentation/filesystems/mountoptions
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`.
2024-08-07 22:56:48 +02:00

39 lines
1.2 KiB
Go

package commondocumentation
import docvalues "config-lsp/doc-values"
var HpfsDocumentationAssignable = map[docvalues.EnumString]docvalues.Value{
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(
"umask",
"Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.",
): docvalues.StringValue{},
}
var HpfsDocumentationEnums = []docvalues.EnumString{
// Move up to map
docvalues.CreateEnumStringWithDoc(
"case",
"Convert all files names to lower case, or leave them. (Default: case=lower.)",
),
docvalues.CreateEnumStringWithDoc(
"conv",
"This option is obsolete and may fail or being ignored.",
),
docvalues.CreateEnumStringWithDoc(
"nocheck",
"Do not abort mounting when certain consistency checks fail.",
),
}