[Sheepdog] [PATCH 6/6] split SD_STATUS_STARTUP

2010-05-04 Thread MORITA Kazutaka
There are two independent state in SD_STATUS_STARTUP: - collie is waiting for a format opereation - collie is waiting for other nodes joining to the cluster so we should split it. This patch introduces SD_STATUS_WAIT_FOR_FORMAT and SD_STATUS_WAIT_FOR_JOIN. Signed-off-by: MORITA Kazutaka --- c

[Sheepdog] [PATCH 5/6] collie: fix collie starting with empty epoch directory

2010-05-04 Thread MORITA Kazutaka
If the empty epoch directory is already in the store directory, collie fails to start up without much information. This occurs, for example, when we stop collies before executing mkfs. This patch continues starting up in the such case. Signed-off-by: MORITA Kazutaka --- collie/store.c |4 +

[Sheepdog] [PATCH 4/6] collie: show boot error messages to the foreground

2010-05-04 Thread MORITA Kazutaka
For debugging, it is better to show error messages to the console until collie starts working. Signed-off-by: MORITA Kazutaka --- collie/group.c | 10 +- collie/store.c |8 collie/work.c |6 +++--- lib/event.c|2 +- lib/net.c | 12 ++-- 5 files

[Sheepdog] [PATCH 2/6] collie: initialize logger first

2010-05-04 Thread MORITA Kazutaka
We cannot log anything until initializing logger, so we should do it first. Signed-off-by: MORITA Kazutaka --- collie/collie.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collie/collie.c b/collie/collie.c index 8c31ff6..81dfb05 100644 --- a/collie/collie.c +++ b/c

[Sheepdog] [PATCH 1/6] collie: make the master node read global_nr_copies in __sd_confchg

2010-05-04 Thread MORITA Kazutaka
When there is only one node in the sheepdog cluster, the master node doesn't get join messages, so it should read the global number of object copies by itself. Signed-off-by: MORITA Kazutaka --- collie/collie.h |2 +- collie/group.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-)

[Sheepdog] [PATCH 3/6] collie: detach after collie initialization

2010-05-04 Thread MORITA Kazutaka
Collie should become a daemon after sheepdog finishes initialization processes. Signed-off-by: MORITA Kazutaka --- collie/collie.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/collie/collie.c b/collie/collie.c index 81dfb05..453c1b5 100644 --- a/collie/collie.c +

[Sheepdog] [PATCH 0/6] clean up cluster startup codes

2010-05-04 Thread MORITA Kazutaka
This patchset makes the output of collie startup more user-friendly. Regards, Kazutaka Morita -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog