mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Add missing MMP status code to libzfs_status
When MMP was merged the status codes in libzfs_status were not updated to add the status code for ZPOOL_STATUS_IO_FAILURE_MMP. This commit corrects this and adds comments to help keep track of which code is used for which status. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: bunder2015 <omfgbunder@gmail.com> Closes #8148 Closes #8222
This commit is contained in:
committed by
Brian Behlendorf
parent
65ca2c1eb9
commit
5365b0747a
@@ -62,7 +62,8 @@ log_assert "Verify that Errata 3 is properly handled"
|
||||
|
||||
uncompress_pool
|
||||
log_must zpool import -d /$TESTPOOL/ $POOL_NAME
|
||||
log_must eval "zpool status | grep -q Errata"
|
||||
log_must eval "zpool status $POOL_NAME | grep -q Errata"
|
||||
log_must eval "zpool status $POOL_NAME | grep -q ZFS-8000-ER"
|
||||
log_must eval "echo 'password' | zfs load-key $POOL_NAME/testfs"
|
||||
log_must eval "echo 'password' | zfs load-key $POOL_NAME/testvol"
|
||||
|
||||
@@ -95,5 +96,6 @@ log_must zfs destroy -r $POOL_NAME/testvol
|
||||
|
||||
log_must zpool export $POOL_NAME
|
||||
log_must zpool import -d /$TESTPOOL/ $POOL_NAME
|
||||
log_mustnot eval "zpool status | grep -q Errata"
|
||||
log_mustnot eval "zpool status $POOL_NAME | grep -q Errata"
|
||||
log_mustnot eval "zpool status $POOL_NAME | grep -q ZFS-8000-ER"
|
||||
log_pass "Errata 3 is properly handled"
|
||||
|
||||
Reference in New Issue
Block a user