Myzel394 73de4ca319 Add more mount options to common-documentation
Related to #1

Add documentation for adfs, affs, and debugfs filesystem mount options.

* **common-documentation/filesystems/mountoptions/adfs.go**
  - Add documentation for adfs filesystem options including uid, gid, ownmask, and othmask.

* **common-documentation/filesystems/mountoptions/affs.go**
  - Add documentation for affs filesystem options including uid, gid, setuid, setgid, mode, and other options.

* **common-documentation/filesystems/mountoptions/debugfs.go**
  - Add documentation for debugfs filesystem options including uid, gid, and mode.

* **handlers/fstab/documentation/documentation-mountoptions.go**
  - Update to include the new mount options for adfs, affs, and debugfs filesystems.
  - Add entries for adfs, affs, and debugfs in the `MountOptionsMapField`.

* **common.go**
  - Add common constants like "zero" to common-documentation/filesystems/mountoptions/common.go.
2024-08-05 23:01:28 +02:00

19 lines
509 B
Go

package commondocumentation
import docvalues "config-lsp/doc-values"
var DebugfsDocumentationAssignable = map[docvalues.EnumString]docvalues.Value{
docvalues.CreateEnumStringWithDoc(
"uid",
"Set the owner of the mountpoint.",
): docvalues.NumberValue{Min: &zero},
docvalues.CreateEnumStringWithDoc(
"gid",
"Set the group of the mountpoint.",
): docvalues.NumberValue{Min: &zero},
docvalues.CreateEnumStringWithDoc(
"mode",
"Sets the mode of the mountpoint.",
): docvalues.StringValue{},
}