func (s *storageZfs) StorageCoreInit() error {
	s.sType = storageTypeZfs
	typeName, err := storageTypeToString(s.sType)
	if err != nil {
		return err
	}
	s.sTypeName = typeName

	if zfsVersion != "" {
		s.sTypeVersion = zfsVersion
		return nil
	}

	util.LoadModule("zfs")

	if !zfsIsEnabled() {
		return fmt.Errorf("The \"zfs\" tool is not enabled")
	}

	s.sTypeVersion, err = zfsToolVersionGet()
	if err != nil {
		s.sTypeVersion, err = zfsModuleVersionGet()
		if err != nil {
			return err
		}
	}

	zfsVersion = s.sTypeVersion

	return nil
}
func (s *storageZfs) StorageCoreInit() error {
	s.sType = storageTypeZfs
	typeName, err := storageTypeToString(s.sType)
	if err != nil {
		return err
	}
	s.sTypeName = typeName

	if zfsVersion != "" {
		s.sTypeVersion = zfsVersion
		return nil
	}

	util.LoadModule("zfs")

	if !zfsIsEnabled() {
		return fmt.Errorf("The \"zfs\" tool is not enabled")
	}

	s.sTypeVersion, err = zfsToolVersionGet()
	if err != nil {
		s.sTypeVersion, err = zfsModuleVersionGet()
		if err != nil {
			return err
		}
	}

	zfsVersion = s.sTypeVersion

	return nil
}
// Only initialize the minimal information we need about a given storage type.