func LastError() (err error) {
	errno := C.libzfs_errno(libzfsHandle)
	if errno == 0 {
		return nil
	}
	return errors.New(C.GoString(C.libzfs_error_description(libzfsHandle)))
}
LastError get last underlying libzfs error description if any
package zfs
import "C"
import (
	"errors"
)
type VDevType string
var libzfsHandle *C.struct_libzfs_handle
func init() {
	libzfsHandle = C.libzfs_init()
	return
}
const (
	VDevTypeRoot      VDevType = "root"       
	VDevTypeMirror             = "mirror"     
	VDevTypeReplacing          = "replacing"  
	VDevTypeRaidz              = "raidz"      
	VDevTypeDisk               = "disk"       
	VDevTypeFile               = "file"       
	VDevTypeMissing            = "missing"    
	VDevTypeHole               = "hole"       
	VDevTypeSpare              = "spare"      
	VDevTypeLog                = "log"        
	VDevTypeL2cache            = "l2cache"    
)
type Prop int
type PoolStatus int
type PoolState uint64
type VDevState uint64
type VDevAux uint64
type Property struct {
	Value  string
	Source string
}
const (
	PoolStatusCorruptCache      PoolStatus = iota  
	PoolStatusMissingDevR                          
	PoolStatusMissingDevNr                         
	PoolStatusCorruptLabelR                        
	PoolStatusCorruptLabelNr                       
	PoolStatusBadGUIDSum                           
	PoolStatusCorruptPool                          
	PoolStatusCorruptData                          
	PoolStatusFailingDev                           
	PoolStatusVersionNewer                         
	PoolStatusHostidMismatch                       
	PoolStatusIoFailureWait                        
	PoolStatusIoFailureContinue                    
	PoolStatusBadLog                               
	PoolStatusErrata                               
	PoolStatusUnsupFeatRead   
	PoolStatusUnsupFeatWrite  
	PoolStatusFaultedDevR   
	PoolStatusFaultedDevNr  
	PoolStatusVersionOlder  
	PoolStatusFeatDisabled  
	PoolStatusResilvering   
	PoolStatusOfflineDev    
	PoolStatusRemovedDev    
	PoolStatusOk
)
const (
	PoolStateActive            PoolState = iota  
	PoolStateExported                            
	PoolStateDestroyed                           
	PoolStateSpare                               
	PoolStateL2cache                             
	PoolStateUninitialized                       
	PoolStateUnavail                             
	PoolStatePotentiallyActive                   
)
const (
	PoolPropName Prop = iota
	PoolPropSize
	PoolPropCapacity
	PoolPropAltroot
	PoolPropHealth
	PoolPropGUID
	PoolPropVersion
	PoolPropBootfs
	PoolPropDelegation
	PoolPropAutoreplace
	PoolPropCachefile
	PoolPropFailuremode
	PoolPropListsnaps
	PoolPropAutoexpand
	PoolPropDedupditto
	PoolPropDedupratio
	PoolPropFree
	PoolPropAllocated
	PoolPropReadonly
	PoolPropAshift
	PoolPropComment
	PoolPropExpandsz
	PoolPropFreeing
	PoolPropFragmentaion
	PoolPropLeaked
	PoolPropMaxBlockSize
	PoolPropTName
	PoolNumProps
)
const (
	DatasetPropType Prop = iota
	DatasetPropCreation
	DatasetPropUsed
	DatasetPropAvailable
	DatasetPropReferenced
	DatasetPropCompressratio
	DatasetPropMounted
	DatasetPropOrigin
	DatasetPropQuota
	DatasetPropReservation
	DatasetPropVolsize
	DatasetPropVolblocksize
	DatasetPropRecordsize
	DatasetPropMountpoint
	DatasetPropSharenfs
	DatasetPropChecksum
	DatasetPropCompression
	DatasetPropAtime
	DatasetPropDevices
	DatasetPropExec
	DatasetPropSetuid
	DatasetPropReadonly
	DatasetPropZoned
	DatasetPropSnapdir
	DatasetPropPrivate  
	DatasetPropAclinherit
	DatasetPropCreatetxg  
	DatasetPropName       
	DatasetPropCanmount
	DatasetPropIscsioptions  
	DatasetPropXattr
	DatasetPropNumclones  
	DatasetPropCopies
	DatasetPropVersion
	DatasetPropUtf8only
	DatasetPropNormalize
	DatasetPropCase
	DatasetPropVscan
	DatasetPropNbmand
	DatasetPropSharesmb
	DatasetPropRefquota
	DatasetPropRefreservation
	DatasetPropGUID
	DatasetPropPrimarycache
	DatasetPropSecondarycache
	DatasetPropUsedsnap
	DatasetPropUsedds
	DatasetPropUsedchild
	DatasetPropUsedrefreserv
	DatasetPropUseraccounting  
	DatasetPropStmfShareinfo   
	DatasetPropDeferDestroy
	DatasetPropUserrefs
	DatasetPropLogbias
	DatasetPropUnique    
	DatasetPropObjsetid  
	DatasetPropDedup
	DatasetPropMlslabel
	DatasetPropSync
	DatasetPropRefratio
	DatasetPropWritten
	DatasetPropClones
	DatasetPropLogicalused
	DatasetPropLogicalreferenced
	DatasetPropInconsistent  
	DatasetPropSnapdev
	DatasetPropAcltype
	DatasetPropSelinuxContext
	DatasetPropSelinuxFsContext
	DatasetPropSelinuxDefContext
	DatasetPropSelinuxRootContext
	DatasetPropRelatime
	DatasetPropRedundantMetadata
	DatasetPropOverlay
	DatasetNumProps
)