wrong tag used for zfs managed detection

This commit is contained in:
shoopea 2023-07-31 11:23:50 +02:00
parent da53fcf8b5
commit f51d7f4f51
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "4a0f110" var githash = "da53fcf"
var branch = "v2" var branch = "v2"
var buildstamp = "2023-07-31_09:15:54" var buildstamp = "2023-07-31_09:23:23"
var commits = "72" var commits = "73"
var version = "4a0f110-b72 - 2023-07-31_09:15:54" var version = "da53fcf-b73 - 2023-07-31_09:23:23"

2
zfs.go
View File

@ -130,7 +130,7 @@ func (z *BoxZfs) Open() error {
log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Debugf("zfs get " + zfsManagedPropertyName) log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Debugf("zfs get " + zfsManagedPropertyName)
if fs, ok := z.filesystems[rec[0]]; ok { if fs, ok := z.filesystems[rec[0]]; ok {
if rec[1] == "true" { if rec[1] == "+" {
fs.managed = true fs.managed = true
log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Infof("managed fs") log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Infof("managed fs")
} }