Unmount local FS before stopping jail
This commit is contained in:
@ -9,6 +9,7 @@ type Jail struct {
|
||||
Config JailConfig
|
||||
RootPath string
|
||||
ConfigPath string
|
||||
ConfigUpdated bool
|
||||
Running bool
|
||||
// No need, Config.Release always represent what is running (plus it know release for non-running jails)
|
||||
//Release string
|
||||
@ -20,6 +21,7 @@ type Jail struct {
|
||||
//
|
||||
// Fields in this struct are acquired by their name using reflection
|
||||
// So these char are forbidden for field name: -+.
|
||||
// Array should be forbidden, or else you'll need to rewrite setJailProperty()
|
||||
//
|
||||
// To allow sorting, just duplicate fields in JailConfigSort below
|
||||
type JailConfig struct {
|
||||
@ -162,6 +164,17 @@ type JailConfig struct {
|
||||
Writeiops string `json:"writeiops"`
|
||||
}
|
||||
|
||||
// Represent an fstab line
|
||||
type Mount struct {
|
||||
Device string
|
||||
Mountpoint string
|
||||
Type string
|
||||
Options []string
|
||||
Fs_Freq int
|
||||
Fs_Passno int
|
||||
}
|
||||
|
||||
|
||||
// This struct hold "sort by jail fields" functions
|
||||
type lessFunc func(j1 *Jail, j2 *Jail) bool
|
||||
|
||||
|
Reference in New Issue
Block a user