mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 13:11:46 +08:00
feature (chroot): add chroot option to nfs backends
This commit is contained in:
@ -83,7 +83,7 @@ func (this NfsShare) LoginForm() Form {
|
|||||||
Name: "advanced",
|
Name: "advanced",
|
||||||
Type: "enable",
|
Type: "enable",
|
||||||
Placeholder: "Advanced",
|
Placeholder: "Advanced",
|
||||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
|
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
|
||||||
},
|
},
|
||||||
FormElement{
|
FormElement{
|
||||||
Id: "nfs_uid",
|
Id: "nfs_uid",
|
||||||
@ -103,6 +103,12 @@ func (this NfsShare) LoginForm() Form {
|
|||||||
Type: "text",
|
Type: "text",
|
||||||
Placeholder: "machine name",
|
Placeholder: "machine name",
|
||||||
},
|
},
|
||||||
|
FormElement{
|
||||||
|
Id: "nfs_chroot",
|
||||||
|
Name: "path",
|
||||||
|
Type: "text",
|
||||||
|
Placeholder: "chroot",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,7 +77,7 @@ func (this Nfs4Share) LoginForm() Form {
|
|||||||
Name: "advanced",
|
Name: "advanced",
|
||||||
Type: "enable",
|
Type: "enable",
|
||||||
Placeholder: "Advanced",
|
Placeholder: "Advanced",
|
||||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
|
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
|
||||||
},
|
},
|
||||||
FormElement{
|
FormElement{
|
||||||
Id: "nfs_uid",
|
Id: "nfs_uid",
|
||||||
@ -97,6 +97,12 @@ func (this Nfs4Share) LoginForm() Form {
|
|||||||
Type: "text",
|
Type: "text",
|
||||||
Placeholder: "machine name",
|
Placeholder: "machine name",
|
||||||
},
|
},
|
||||||
|
FormElement{
|
||||||
|
Id: "nfs_chroot",
|
||||||
|
Name: "path",
|
||||||
|
Type: "text",
|
||||||
|
Placeholder: "chroot",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user