Date: Fri, 27 Aug 2010 20:48:12 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r211895 - head/sbin/hastd Message-ID: <201008272048.o7RKmCf0007085@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Fri Aug 27 20:48:12 2010 New Revision: 211895 URL: http://svn.freebsd.org/changeset/base/211895 Log: Add hooks execution. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Fri Aug 27 19:57:17 2010 (r211894) +++ head/sbin/hastd/primary.c Fri Aug 27 20:48:12 2010 (r211895) @@ -1517,6 +1517,8 @@ sync_thread(void *arg __unused) pjdlog_info("Synchronization interrupted. " "%jd bytes synchronized so far.", (intmax_t)synced); + hook_exec(res->hr_exec, "syncintr", + res->hr_name, NULL); } while (!sync_inprogress) { dorewind = true; @@ -1549,6 +1551,8 @@ sync_thread(void *arg __unused) pjdlog_info("Synchronization started. %ju bytes to go.", (uintmax_t)(res->hr_extentsize * activemap_ndirty(res->hr_amp))); + hook_exec(res->hr_exec, "syncstart", + res->hr_name, NULL); } } if (offset < 0) { @@ -1565,6 +1569,8 @@ sync_thread(void *arg __unused) pjdlog_info("Synchronization complete. " "%jd bytes synchronized.", (intmax_t)synced); + hook_exec(res->hr_exec, "syncdone", + res->hr_name, NULL); } mtx_lock(&metadata_lock); res->hr_syncsrc = HAST_SYNCSRC_UNDEF;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008272048.o7RKmCf0007085>