From 63e3a8616b200dc36fe9d298a466bb5c25b58132 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Wed, 26 Nov 2014 09:57:30 -0800 Subject: Illumos 5349 - verify that block pointer is plausible before reading 5349 verify that block pointer is plausible before reading Reviewed by: Alex Reece Reviewed by: Christopher Siden Reviewed by: Dan McDonald Reviewed by: George Wilson Reviewed by: Richard Lowe Reviewed by: Xin Li Reviewed by: Josef 'Jeff' Sipek Approved by: Gordon Ross References: https://www.illumos.org/issues/5349 https://github.com/illumos/illumos-gate/commit/f63ab3d5 Porting notes: * Several variable declarations were moved due to C style needs Ported-by: DHE Signed-off-by: Brian Behlendorf Closes #3373 --- include/sys/spa.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sys/spa.h b/include/sys/spa.h index 13cbbf98b..834ad005a 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -830,6 +830,7 @@ extern boolean_t spa_has_slogs(spa_t *spa); extern boolean_t spa_is_root(spa_t *spa); extern boolean_t spa_writeable(spa_t *spa); extern boolean_t spa_has_pending_synctask(spa_t *spa); +extern void zfs_blkptr_verify(spa_t *spa, const blkptr_t *bp); extern int spa_mode(spa_t *spa); extern uint64_t strtonum(const char *str, char **nptr); -- cgit v1.2.3