aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/pjdlog.h
Commit message (Collapse)AuthorAgeFilesLines
* Don't use function name as format string.Pawel Jakub Dawidek2011-12-181-1/+1
| | | | | | | | Detected by: clang MFC after: 1 week Notes: svn path=/head/; revision=228695
* Rename pjdlog_verify() to pjdlog_abort() as it better describes what thePawel Jakub Dawidek2011-01-311-5/+5
| | | | | | | | | the function does and mark it with __dead2. MFC after: 1 week Notes: svn path=/head/; revision=218132
* Extend pjdlog_verify() to support the following additional macros:Pawel Jakub Dawidek2011-01-271-3/+15
| | | | | | | | | | | | | PJDLOG_RVERIFY() - always check expression and on false log the given message and exit. PJDLOG_RASSERT() - check expression when NDEBUG is not defined and on false log given message and exit. PJDLOG_ABORT() - log the given message and exit. MFC after: 1 week Notes: svn path=/head/; revision=217966
* Add functions to initialize/finalize pjdlog. This allows to open/close logPawel Jakub Dawidek2011-01-271-0/+4
| | | | | | | | | file at will. MFC after: 1 week Notes: svn path=/head/; revision=217965
* Remove __dead2 from pjdlog_verify() prototype, it does return sometimes.Pawel Jakub Dawidek2011-01-271-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=217958
* Use more consistent function name with the others (pjdlogv_prefix_set()Pawel Jakub Dawidek2011-01-221-1/+1
| | | | | | | | | instead of pjdlog_prefix_setv()). MFC after: 1 week Notes: svn path=/head/; revision=217731
* Problem with assertion is that it logs on stderr. Add two macros:Pawel Jakub Dawidek2010-08-051-0/+13
| | | | | | | | | | | | PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition and log the problem where appropriate. The difference between those two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be turned off by defining NDEBUG. MFC after: 1 month Notes: svn path=/head/; revision=210875
* Please welcome HAST - Highly Avalable Storage.Pawel Jakub Dawidek2010-02-181-0/+88
HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total. HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD. For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST. Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV Notes: svn path=/head/; revision=204076