aboutsummaryrefslogtreecommitdiff
path: root/contrib/pyzfs/libzfs_core/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pyzfs/libzfs_core/exceptions.py')
-rw-r--r--contrib/pyzfs/libzfs_core/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/pyzfs/libzfs_core/exceptions.py b/contrib/pyzfs/libzfs_core/exceptions.py
index e484b07b6450..ba8f7e49093c 100644
--- a/contrib/pyzfs/libzfs_core/exceptions.py
+++ b/contrib/pyzfs/libzfs_core/exceptions.py
@@ -30,6 +30,7 @@ from ._constants import (
ZFS_ERR_DEVRM_IN_PROGRESS,
ZFS_ERR_VDEV_TOO_BIG,
ZFS_ERR_WRONG_PARENT,
+ ZFS_ERR_RAIDZ_EXPAND_IN_PROGRESS,
zfs_errno
)
@@ -598,4 +599,9 @@ class DeviceTooBig(ZFSError):
message = "One or more top-level vdevs exceed the maximum vdev size"
+class RaidzExpansionRunning(ZFSError):
+ errno = ZFS_ERR_RAIDZ_EXPAND_IN_PROGRESS
+ message = "A raidz device is currently expanding"
+
+
# vim: softtabstop=4 tabstop=4 expandtab shiftwidth=4