CIA.vc
pjd
Real-time open source activity stats
Stats » Authors » pjd
informationsyndicateUTC clock
04:19 on Sep 03, 2010
event counters
The last message was received 2.39 days ago at 19:02 on Aug 31, 2010
0 messages so far today, 0 messages yesterday
14 messages so far this week, 36 messages last week
0 messages so far this month, 107 messages last month
1826 messages since the first one, 5.75 years ago, for an average of 1.15 days between messages
recent messages
dateReversed sort columnprojectcontentlink
19:01 TuesdayFreeBSD
Commit by pjd :: r212067 /head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: (link)
Eliminate confusing while () loop. In the first version of the code it was
there to avoid gotos, but in the current version it serves no purpose.

MFC after: 2 weeks
#
12:05 TuesdayFreeBSD
Commit by pjd :: r212052 /head/sbin/hastd/pjdlog.c: (link)
Include process PID in log messages.

Submitted by: Mikolaj Golub <to dot my dot trociny at gmail dot com>
MFC after: 2 weeks
#
12:03 TuesdayFreeBSD
Commit by pjd :: r212051 /head/sbin/hastd/secondary.c: (link)
Correct error message.

Submitted by: Mikolaj Golub <to dot my dot trociny at gmail dot com>
MFC after: 2 weeks
#
10:41 TuesdayFreeBSD
Commit by pjd :: r212050 /head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c: (link)
When upgrading a pool which contain root file system, give user a hint that
he should update boot code.

MFC after: 2 weeks
#
09:38 TuesdayFreeBSD
Commit by pjd :: r212049 /head/sbin/hastd/ (event.c event.h): (link)
Forgot to add event.c and event.h in r212038.

Pointed out by: pluknet <pluknet at gmail dot com>
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
06:22 TuesdayFreeBSD
Commit by pjd :: r212046 /head/sbin/hastd/primary.c: (link)
Mask only those signals that we want to handle.

Suggested by: jilles
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
23:26 MondayFreeBSD
Commit by pjd :: r212038 /head/sbin/hastd/ (5 files): (link)
Because it is very hard to make fork(2) from threaded process safe (we are
limited to async-signal safe functions in the child process), move all hooks
execution to the main (non-threaded) process.

Do it by maintaining connection (socketpair) between child and parent
and sending events from the child to parent, so it can execute the hook.

This is step in right direction for others reasons too. For example there is
one less problem to drop privs in worker processes.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
23:19 MondayFreeBSD
Commit by pjd :: r212037 /head/sbin/hastd/hastd.c: (link)
We only want to know if descriptors are ready for reading.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
23:16 MondayFreeBSD
Commit by pjd :: r212036 /head/sbin/hastd/proto_socketpair.c: (link)
When someone gives NULL as data, assume this is because he want to declare
connection side only.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
22:28 MondayFreeBSD
Commit by pjd :: r212034 /head/sbin/hastd/primary.c: (link)
Use pjdlog_exit() before fork().

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
22:26 MondayFreeBSD
Commit by pjd :: r212033 /head/sbin/hastd/ (4 files): (link)
Constify arguments we can constify.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
00:31 MondayFreeBSD
Commit by pjd :: r211984 /head/sbin/hastd/ (primary.c hast.conf.5 secondary.c): (link)
Execute hook when connection between the nodes is established or lost.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
00:12 MondayFreeBSD
Commit by pjd :: r211983 /head/sbin/hastd/ (primary.c hast.conf.5 secondary.c): (link)
Execute hook when split-brain is detected.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
00:06 MondayFreeBSD
Commit by pjd :: r211982 /head/sbin/hastd/primary.c: (link)
Use sigtimedwait(2) for signals handling in primary process.
This fixes various races and eliminates use of pthread* API in signal handler.

Pointed out by: kib
With help from: jilles
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
22:55 SundayFreeBSD
Commit by pjd :: r211981 /head/sbin/hastd/primary.c: (link)

  • Move functionality responsible for checking one connection to separate function to make code more readable.
  • Be sure not to reconnect too often in case of signal delivery, etc. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
22:17 SundayFreeBSD
Commit by pjd :: r211979 /head/sbin/hastd/primary.c: (link)
Disconnect after logging errors.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
21:42 SundayFreeBSD
Commit by pjd :: r211978 /head/sbin/hastd/ (control.c hast.conf.5): (link)

#
21:41 SundayFreeBSD
Commit by pjd :: r211977 /head/sbin/hastd/ (hastd.c primary.c secondary.c): (link)
Allow to run hooks from the main hastd process.

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
21:39 SundayFreeBSD
Commit by pjd :: r211976 /head/sbin/hastd/ (hooks.c hooks.h): (link)

  • Add hook_fini() which should be called after fork() from the main hastd process, once it start to use hooks.
  • Add hook_check_one() in case the caller expects different child processes and once it can recognize it, it will pass pid and status to hook_check_one(). MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#
21:37 SundayFreeBSD
Commit by pjd :: r211975 /head/sbin/hastd/synch.h: (link)
Implement mtx_destroy() and rw_destroy().

MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
#