Re: [sheepdog] [PATCH] new option -i to initialize storage directory

2012-07-22 Thread MORITA Kazutaka
At Fri, 20 Jul 2012 10:29:29 +, Dietmar Maurer wrote: This looks strange to me. It acts like we need mkfs the directory before run the sheep, where as we actually make nothing to it, just create a file lock. This extra step might solve some problems (which could be solved by other

Re: [sheepdog] [PATCH v3 0/4] object list cache reclaim after deleting a VDI

2012-07-22 Thread levin li
On 07/19/2012 10:19 AM, levin li wrote: From: levin li xingke@taobao.com v2 --- v3: 1. add some comments 2. rename objlist_cache_delete to objlist_cache_cleanup v1 --- v2: 1. rename 'reclaim' to 'deletion' 2. add some comments Object list cache does not take too much memory, so

Re: [sheepdog] [PATCH v3 0/4] object list cache reclaim after deleting a VDI

2012-07-22 Thread Liu Yuan
On 07/19/2012 10:19 AM, levin li wrote: v2 --- v3: 1. add some comments 2. rename objlist_cache_delete to objlist_cache_cleanup Applied thanks. Yuan -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog

[sheepdog] Add kill node operation

2012-07-22 Thread Liu Yuan
This patch set add kill node operation for maintainence and scripts by a collie command and signal handler for SIGTERM Thanks, Yuan -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog

[sheepdog] [PATCH 1/3] sheep: add a kill node operation

2012-07-22 Thread Liu Yuan
From: Liu Yuan tailai...@taobao.com This command is supposed to shut down the specified node gracefully. usage: $ collie node kill node_id Signed-off-by: Liu Yuan tailai...@taobao.com --- collie/node.c| 37 + include/internal_proto.h |2 ++

[sheepdog] [PATCH 3/3] sheep: shutdown gracefully down when we receive SIGTERM

2012-07-22 Thread Liu Yuan
From: Liu Yuan tailai...@taobao.com Signed-off-by: Liu Yuan tailai...@taobao.com --- sheep/sheep.c | 56 +++- 1 file changed, 51 insertions(+), 5 deletions(-) diff --git a/sheep/sheep.c b/sheep/sheep.c index 3ae1ec9..0bdc4b8 100644 ---

[sheepdog] [PATCH 2/3] trace: move init_signal to trace_init_signal

2012-07-22 Thread Liu Yuan
From: Liu Yuan tailai...@taobao.com This is preparation for signal_handler patch Signed-off-by: Liu Yuan tailai...@taobao.com --- sheep/sheep.c |5 + sheep/trace/trace.c |2 +- sheep/trace/trace.h |4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [sheepdog] [PATCH 1/3] sheep: add a kill node operation

2012-07-22 Thread Dietmar Maurer
Great. We can use this from the init.d scripts. -Original Message- From: sheepdog-boun...@lists.wpkg.org [mailto:sheepdog- boun...@lists.wpkg.org] On Behalf Of Liu Yuan Sent: Montag, 23. Juli 2012 05:24 To: sheepdog@lists.wpkg.org Subject: [sheepdog] [PATCH 1/3] sheep: add a kill

Re: [sheepdog] [PATCH] sheep: add a kill node operation

2012-07-22 Thread MORITA Kazutaka
At Fri, 20 Jul 2012 17:12:21 +, Dietmar Maurer wrote: after some more thinking, this is also wrong. I would be really great to have some documentation about that? How does read/write during recovery works exactly. I first though we can simply reject reads. For writes, we can reject

[sheepdog] [PATCH] sheep: add name for SD_OP_NOTIFY_VDI_DEL

2012-07-22 Thread levin li
From: levin li xingke@taobao.com Signed-off-by: levin li xingke@taobao.com --- sheep/ops.c |1 + 1 file changed, 1 insertion(+) diff --git a/sheep/ops.c b/sheep/ops.c index 6802aea..f236ab2 100644 --- a/sheep/ops.c +++ b/sheep/ops.c @@ -845,6 +845,7 @@ static struct sd_op_template

Re: [sheepdog] [PATCH] sheep: add name for SD_OP_NOTIFY_VDI_DEL

2012-07-22 Thread Liu Yuan
On 07/23/2012 01:20 PM, levin li wrote: From: levin li xingke@taobao.com Signed-off-by: levin li xingke@taobao.com --- sheep/ops.c |1 + 1 file changed, 1 insertion(+) diff --git a/sheep/ops.c b/sheep/ops.c index 6802aea..f236ab2 100644 --- a/sheep/ops.c +++

Re: [sheepdog] [PATCH 1/3] sheep: add a kill node operation

2012-07-22 Thread Liu Yuan
On 07/23/2012 12:02 PM, Dietmar Maurer wrote: Great. We can use this from the init.d scripts. Hi Dietmar, would you please try the latest origin/devel branch and see if init.d scripts can work with Sheepdog correctly? Thanks, Yuan -- sheepdog mailing list sheepdog@lists.wpkg.org