diff options
author | Matthew Ahrens <[email protected]> | 2014-11-26 09:57:30 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-05-08 14:09:15 -0700 |
commit | 63e3a8616b200dc36fe9d298a466bb5c25b58132 (patch) | |
tree | 62dac467064735789cacebfed2ae5b0c62f856b3 /include/sys/spa.h | |
parent | f0da4d15082be83547e5370e4479d3c04b56451d (diff) |
Illumos 5349 - verify that block pointer is plausible before reading
5349 verify that block pointer is plausible before reading
Reviewed by: Alex Reece <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: Dan McDonald <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Richard Lowe <[email protected]>
Reviewed by: Xin Li <[email protected]>
Reviewed by: Josef 'Jeff' Sipek <[email protected]>
Approved by: Gordon Ross <[email protected]>
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3373
Diffstat (limited to 'include/sys/spa.h')
-rw-r--r-- | include/sys/spa.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |