use managed attribute
This commit is contained in:
7
zfs.go
7
zfs.go
@@ -23,9 +23,11 @@ type BoxZfs struct {
|
||||
type ZfsFs struct {
|
||||
path string
|
||||
managed bool
|
||||
backedUp bool
|
||||
zfs *BoxZfs
|
||||
snapshots map[string]*ZfsSnapshot
|
||||
apps []*App
|
||||
srcApps []*App
|
||||
destApps []*App
|
||||
mx sync.Mutex
|
||||
}
|
||||
|
||||
@@ -200,7 +202,8 @@ func (z *BoxZfs) Mkdir(path string) error {
|
||||
managed: false,
|
||||
zfs: z,
|
||||
snapshots: make(map[string]*ZfsSnapshot),
|
||||
apps: make([]*App, 0),
|
||||
srcApps: make([]*App, 0),
|
||||
destApps: make([]*App, 0),
|
||||
}
|
||||
z.filesystems[newPath] = fs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user