Additional compatibility changes to work with libzfs 0.7.x
This commit is contained in:
parent
c0f5b857fc
commit
6b01056691
|
@ -90,8 +90,11 @@ const (
|
|||
PoolStatusFailingDev /* device experiencing errors */
|
||||
PoolStatusVersionNewer /* newer on-disk version */
|
||||
PoolStatusHostidMismatch /* last accessed by another system */
|
||||
PoolStatusHosidActive /* currently active on another system */
|
||||
PoolStatusHostidRequired /* multihost=on and hostid=0 */
|
||||
PoolStatusIoFailureWait /* failed I/O, failmode 'wait' */
|
||||
PoolStatusIoFailureContinue /* failed I/O, failmode 'continue' */
|
||||
PoolStatusIOFailureMap /* ailed MMP, failmode not 'panic' */
|
||||
PoolStatusBadLog /* cannot read log chain(s) */
|
||||
PoolStatusErrata /* informational errata available */
|
||||
|
||||
|
|
6
zpool.go
6
zpool.go
|
@ -1114,10 +1114,16 @@ func (s PoolStatus) String() string {
|
|||
return "VERSION_NEWER"
|
||||
case PoolStatusHostidMismatch: /* last accessed by another system */
|
||||
return "HOSTID_MISMATCH"
|
||||
case PoolStatusHosidActive: /* currently active on another system */
|
||||
return "HOSTID_ACTIVE"
|
||||
case PoolStatusHostidRequired: /* multihost=on and hostid=0 */
|
||||
return "HOSTID_REQUIRED"
|
||||
case PoolStatusIoFailureWait: /* failed I/O, failmode 'wait' */
|
||||
return "FAILURE_WAIT"
|
||||
case PoolStatusIoFailureContinue: /* failed I/O, failmode 'continue' */
|
||||
return "FAILURE_CONTINUE"
|
||||
case PoolStatusIOFailureMap: /* ailed MMP, failmode not 'panic' */
|
||||
return "HOSTID_FAILURE_MAP"
|
||||
case PoolStatusBadLog: /* cannot read log chain(s) */
|
||||
return "BAD_LOG"
|
||||
case PoolStatusErrata: /* informational errata available */
|
||||
|
|
Loading…
Reference in New Issue