feature (chroot): add chroot option to nfs backends

This commit is contained in:
MickaelK
2024-01-06 17:17:46 +11:00
parent 763201eaa6
commit 409f1bc09f
2 changed files with 14 additions and 2 deletions

View File

@ -83,7 +83,7 @@ func (this NfsShare) LoginForm() Form {
Name: "advanced",
Type: "enable",
Placeholder: "Advanced",
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
},
FormElement{
Id: "nfs_uid",
@ -103,6 +103,12 @@ func (this NfsShare) LoginForm() Form {
Type: "text",
Placeholder: "machine name",
},
FormElement{
Id: "nfs_chroot",
Name: "path",
Type: "text",
Placeholder: "chroot",
},
},
}
}

View File

@ -77,7 +77,7 @@ func (this Nfs4Share) LoginForm() Form {
Name: "advanced",
Type: "enable",
Placeholder: "Advanced",
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
},
FormElement{
Id: "nfs_uid",
@ -97,6 +97,12 @@ func (this Nfs4Share) LoginForm() Form {
Type: "text",
Placeholder: "machine name",
},
FormElement{
Id: "nfs_chroot",
Name: "path",
Type: "text",
Placeholder: "chroot",
},
},
}
}