X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fspa_history.c;fp=module%2Fzfs%2Fspa_history.c;h=243f2b4ab370e83ca5bad8d19a6848c5a551b467;hb=c28b227942b421ebdc03c9df9a012642fb517223;hp=ce7d378c6ff97e843fb53e3aea028c9eb7b635dc;hpb=00b46022c676e402e3f33ce93ee2983bbad2c46f;p=zfs.git diff --git a/module/zfs/spa_history.c b/module/zfs/spa_history.c index ce7d378..243f2b4 100644 --- a/module/zfs/spa_history.c +++ b/module/zfs/spa_history.c @@ -178,7 +178,11 @@ static char * spa_history_zone(void) { #ifdef _KERNEL +#ifdef HAVE_SPL + return ("linux"); +#else return (curproc->p_zone->zone_name); +#endif #else return ("global"); #endif @@ -499,3 +503,11 @@ spa_history_log_version(spa_t *spa, history_internal_events_t event) (u_longlong_t)current_vers, spa_name(spa), SPA_VERSION); #endif } + +#if defined(_KERNEL) && defined(HAVE_SPL) +EXPORT_SYMBOL(spa_history_create_obj); +EXPORT_SYMBOL(spa_history_get); +EXPORT_SYMBOL(spa_history_log); +EXPORT_SYMBOL(spa_history_log_internal); +EXPORT_SYMBOL(spa_history_log_version); +#endif