Additional compatibility changes to work with libzfs 0.7.x

This commit is contained in:
Faruk Kasumovic 2018-07-06 13:35:47 +02:00
parent c0f5b857fc
commit 6b01056691
2 changed files with 9 additions and 0 deletions

View File

@ -90,8 +90,11 @@ const (
PoolStatusFailingDev /* device experiencing errors */ PoolStatusFailingDev /* device experiencing errors */
PoolStatusVersionNewer /* newer on-disk version */ PoolStatusVersionNewer /* newer on-disk version */
PoolStatusHostidMismatch /* last accessed by another system */ PoolStatusHostidMismatch /* last accessed by another system */
PoolStatusHosidActive /* currently active on another system */
PoolStatusHostidRequired /* multihost=on and hostid=0 */
PoolStatusIoFailureWait /* failed I/O, failmode 'wait' */ PoolStatusIoFailureWait /* failed I/O, failmode 'wait' */
PoolStatusIoFailureContinue /* failed I/O, failmode 'continue' */ PoolStatusIoFailureContinue /* failed I/O, failmode 'continue' */
PoolStatusIOFailureMap /* ailed MMP, failmode not 'panic' */
PoolStatusBadLog /* cannot read log chain(s) */ PoolStatusBadLog /* cannot read log chain(s) */
PoolStatusErrata /* informational errata available */ PoolStatusErrata /* informational errata available */

View File

@ -1114,10 +1114,16 @@ func (s PoolStatus) String() string {
return "VERSION_NEWER" return "VERSION_NEWER"
case PoolStatusHostidMismatch: /* last accessed by another system */ case PoolStatusHostidMismatch: /* last accessed by another system */
return "HOSTID_MISMATCH" 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' */ case PoolStatusIoFailureWait: /* failed I/O, failmode 'wait' */
return "FAILURE_WAIT" return "FAILURE_WAIT"
case PoolStatusIoFailureContinue: /* failed I/O, failmode 'continue' */ case PoolStatusIoFailureContinue: /* failed I/O, failmode 'continue' */
return "FAILURE_CONTINUE" return "FAILURE_CONTINUE"
case PoolStatusIOFailureMap: /* ailed MMP, failmode not 'panic' */
return "HOSTID_FAILURE_MAP"
case PoolStatusBadLog: /* cannot read log chain(s) */ case PoolStatusBadLog: /* cannot read log chain(s) */
return "BAD_LOG" return "BAD_LOG"
case PoolStatusErrata: /* informational errata available */ case PoolStatusErrata: /* informational errata available */