Make hook functions overrideable from superclass.
Merge branch 'master' of gitserver:/git/repos/freenas-build/freenas