spa_misc.c revision 9842588ba779c98194a9c238d52784a2e45a850e