use managed attribute

This commit is contained in:
shoopea
2023-07-31 10:13:36 +02:00
parent 24a5e6676f
commit b4d27e0867
7 changed files with 130 additions and 10 deletions

7
zfs.go
View File

@@ -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
}