Re: [sheepdog] Is sheepdog still actively maintained?

2019-03-17 Thread MORITA Kazutaka
On Sun, 17 Mar 2019 10:31:20 +0900, Miles Fidelman wrote: > > On 3/16/19 8:01 PM, MORITA Kazutaka wrote: > > > On Sun, 17 Mar 2019 08:20:25 +0900, > > Miles Fidelman wrote: > >> So who is using Sheepdog in production? > > Our subsidiaries are using it. &g

Re: [sheepdog] Is sheepdog still actively maintained?

2019-03-16 Thread MORITA Kazutaka
On Sun, 17 Mar 2019 09:15:52 +0900, Raymond Burkholder wrote: > > On 2019-03-15 11:29 p.m., MORITA Kazutaka wrote: > >> Any suggestions on alternatives? I'd say ceph is a primary one, but > >> sheepdog seemed to be 'lighter weight'. > > > > I'm a bit inte

Re: [sheepdog] Is sheepdog still actively maintained?

2019-03-16 Thread MORITA Kazutaka
On Sun, 17 Mar 2019 08:20:25 +0900, Miles Fidelman wrote: > > So who is using Sheepdog in production? Our subsidiaries are using it. Thanks, Kazutaka -- sheepdog mailing list sheepdog@lists.wpkg.org https://lists.wpkg.org/mailman/listinfo/sheepdog

Re: [sheepdog] Is sheepdog still actively maintained?

2019-03-15 Thread MORITA Kazutaka
Hello, Sheepdog is not maintained now. There is no plan to add new features, and the repository is kept only for users who are using sheepdog in production currently. > Any suggestions on alternatives? I'd say ceph is a primary one, but sheepdog > seemed to be 'lighter weight'. I'm a bit

[sheepdog] [PATCH] Remove me and Yuan from MAINTAINERS

2015-06-21 Thread MORITA Kazutaka
We forked the sheepdog project. Let's leave the maintance of the original tree to Hitoshi. Signed-off-by: MORITA Kazutaka morita.kazut...@gmail.com --- MAINTAINERS | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2688829..49dd651 100644

Re: [sheepdog] [PATCH v2 1/2] sheep, dog: make recycling VID selectable

2015-03-16 Thread MORITA Kazutaka
At Mon, 16 Mar 2015 21:13:29 +0800, Liu Yuan wrote: How about make 'dog vdi clone --no-share' as the default clone operation? And we can add dog vdi clone --share to keep old behavior as optional. By this manner, --no-share will save us from this kind of subtle problem. And your team

[sheepdog] [PATCH] update MAINTAINERS

2014-07-08 Thread MORITA Kazutaka
I'm not working for NTT lab now. Also, let's add Hitoshi to the master branch maintainers. Unfortunately, I have no time for sheepdog development currently. He is the maintainer of the stable branch and will do a good job instead of me. Signed-off-by: MORITA Kazutaka morita.kazut...@gmail.com

Re: [sheepdog] [PATCH 2/2] sha1: add x86 hardware acceleration for sha1

2014-07-04 Thread MORITA Kazutaka
At Fri, 4 Jul 2014 16:45:23 +0200, Valerio Pachera wrote: Has this patch been merged in the end? Is sheepdog using ssse3 and avx to speed up checksum calculation? Yes. https://github.com/sheepdog/sheepdog/commit/04396f5e668f9a3bd13431e7a239eb305cb27f00 Thanks, Kazutaka -- sheepdog

Re: [sheepdog] [PATCH v10 00/19] object reclaim based on generational reference counting

2014-06-08 Thread MORITA Kazutaka
At Tue, 3 Jun 2014 00:08:54 +0900, Hitoshi Mitake wrote: The object reclaim doesn't support hypervolume yet. But hypervolume cannot be used as a virtual disk (both of qemu and tgt don't support it) currently. And the removal of old vdi deletion is acceptable for hypervolume because it

Re: [sheepdog] Users inputs for new reclaim algorithm, please

2014-03-17 Thread MORITA Kazutaka
At Mon, 17 Mar 2014 21:43:25 +0800, Liu Yuan wrote: With new algorithm, $ dog vdi create image $ dog vdi snapshot image -s snap1 $ dog vdi clone -s snap1 image clone $ dog vdi delete clone -- this operation will surprise you that it won't

Re: [sheepdog] [PATCH v4] sheep/md: change process of for_each_object_in_wd() to multi-threads

2014-03-17 Thread MORITA Kazutaka
At Wed, 26 Feb 2014 14:43:33 +0800, Robin Dong wrote: In our test environment, we upload 6TB data and kill one node, then the sheep daemons on each server will try to rename files from 'data' to '.stale', but the rename operations cost almost half an hour. And in this half an hour, the whole

Re: [sheepdog] Users inputs for new reclaim algorithm, please

2014-03-17 Thread MORITA Kazutaka
At Tue, 18 Mar 2014 00:02:18 +0800, Liu Yuan wrote: Keep old algorithm is a bottom line to me. Either sheep option or static #ifdef looks fine to me. We can later refine it to be dynamically pluggable. New algorithm looks to me more a partial solution than a generic one, compared with

Re: [sheepdog] [PATCH v3 0/9] object reclaim based on generational reference counting

2014-02-24 Thread MORITA Kazutaka
At Mon, 24 Feb 2014 11:08:28 +0800, Liu Yuan wrote: On Sun, Feb 23, 2014 at 07:08:27PM +0900, Hitoshi Mitake wrote: On Sun, Feb 23, 2014 at 2:28 PM, Hitoshi Mitake mitake.hito...@gmail.com wrote: The object reclaim doesn't support hypervolume yet. But hypervolume cannot be used as

Re: [sheepdog] [PATCH] sheep/recovery: don't recover object from stale dir with invalid epoch

2014-02-19 Thread MORITA Kazutaka
At Thu, 6 Feb 2014 17:08:49 +0800, Liu Yuan wrote: Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/recovery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Applied, thanks. Kazutaka -- sheepdog mailing list sheepdog@lists.wpkg.org

Re: [sheepdog] [PATCH] sheep: use correct error code in rebae_vdi()

2014-02-06 Thread MORITA Kazutaka
At Thu, 06 Feb 2014 14:37:25 +0900, Hitoshi Mitake wrote: At Mon, 3 Feb 2014 10:05:49 +0900, Hitoshi Mitake wrote: Signed-off-by: Hitoshi Mitake mitake.hito...@lab.ntt.co.jp --- sheep/vdi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ping? Applied, thanks.

Re: [sheepdog] [PATCH] util: remove unused functions

2014-02-06 Thread MORITA Kazutaka
At Thu, 06 Feb 2014 14:36:38 +0900, Hitoshi Mitake wrote: At Thu, 6 Feb 2014 01:34:18 +0800, Liu Yuan wrote: If we need it future, we can bring them back on demand from git repo. No need to keep it in the source file. Signed-off-by: Liu Yuan namei.u...@gmail.com ---

Re: [sheepdog] [PATCH] sheep: fix vdi clone operation

2014-02-06 Thread MORITA Kazutaka
At Thu, 06 Feb 2014 14:34:35 +0900, Hitoshi Mitake wrote: At Wed, 5 Feb 2014 21:17:28 +0800, Liu Yuan wrote: - pass correct array size - return FULL_VDI instead of wrong NO_BASE_VDI Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/vdi.c | 12 ++-- 1 file

Re: [sheepdog] [PATCH] .gitignore: add dog/sheepdog script and backup files

2014-02-06 Thread MORITA Kazutaka
At Thu, 06 Feb 2014 14:22:40 +0900, Hitoshi Mitake wrote: At Wed, 5 Feb 2014 19:36:58 +0900, Ryusuke Konishi wrote: Get rid of the following untracked files from the output of git status command: $ git status # On branch install # Untracked files: # (use git add

Re: [sheepdog] [PATCH] sheep: changed end of auto-recovery message to notice

2014-02-06 Thread MORITA Kazutaka
At Thu, 6 Feb 2014 17:09:42 +0900, Yoshinori Matsuo wrote: Sheep output the end of auto-recovery log message (all nodes are recovered) at DEBUG level. When sheep nodes are working in the INFO level or upper, the operator could not get this message even if operators want to know the

Re: [sheepdog] [PATCH] sheep/recovery: multi-threading recovery process

2014-02-06 Thread MORITA Kazutaka
At Wed, 5 Feb 2014 15:41:25 +0800, Liu Yuan wrote: + + /* + * If running_threads_nr == 0, it means run_next_rw() is called in the + * finish_object_list() and no recovery threads so it is safe to run + * into next recovery. + * + * If running_threads_nr = 1,

Re: [sheepdog] [PATCH v5] sheep/recovery: multi-threading recovery process

2014-02-06 Thread MORITA Kazutaka
At Thu, 6 Feb 2014 17:18:57 +0800, Liu Yuan wrote: Rationale for multi-threaded recovery: 1. If one node is added, we find that all the VMs on other nodes will get noticeably affected until 50% data is transferred to the new node. 2. For node failure, we might not have problems of

Re: [sheepdog] [PATCH v3] sheep/recovery: multi-threading recovery process

2014-02-04 Thread MORITA Kazutaka
At Tue, 4 Feb 2014 15:14:44 +0800, Liu Yuan wrote: @@ -666,12 +671,19 @@ static void free_recovery_info(struct recovery_info *rinfo) /* Return true if next recovery work is queued. */ static inline bool run_next_rw(void) { - struct recovery_info *nrinfo =

Re: [sheepdog] [PATCH] sheep: Correction of two typos.

2014-02-04 Thread MORITA Kazutaka
At Tue, 4 Feb 2014 14:40:14 +0100, Marcin Miros$(D)H(Baw wrote: Signed-off-by: Marcin Miros$(D)H(Baw mar...@mejor.pl --- sheep/sheep_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks. Kazutaka -- sheepdog mailing list sheepdog@lists.wpkg.org

Re: [sheepdog] [PATCH v2] sheep/plain_store: move displaced object from read/write operation

2014-02-04 Thread MORITA Kazutaka
At Tue, 4 Feb 2014 11:53:43 +0800, Liu Yuan wrote: This is a defensive patch, but solve a problem we found on the test cluster. The problem is tricky: init_vdi_state() errorr out as failed to read inode header xxx, 0. After a detailed log analyzing, we found that the cause of this

Re: [sheepdog] [PATCH v2] sheep/recovery: multi-threading recovery process

2014-02-03 Thread MORITA Kazutaka
At Tue, 28 Jan 2014 18:01:42 +0800, Liu Yuan wrote: @@ -861,6 +885,7 @@ static void recover_object_main(struct work *work) finish_recovery(rinfo); out: + rinfo-running_threads_nr--; free_recovery_obj_work(row); } This can cause a segfault because rinfo may be freed in

[sheepdog] [PATCH] recovery: fix buffer overflow of rinfo-oids

2014-02-03 Thread MORITA Kazutaka
Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/recovery.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sheep/recovery.c b/sheep/recovery.c index c15297c..50b6c58 100644 --- a/sheep/recovery.c +++ b/sheep/recovery.c @@ -613,8 +613,8 @@ main_fn

[sheepdog] [PATCH] sheep: save dw-finish_fd to local variable

2014-02-03 Thread MORITA Kazutaka
We cannot access dw after we call delete_vdis_done() because it may be already freed. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/vdi.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sheep/vdi.c b/sheep/vdi.c index 3414b05..080bc82

[sheepdog] [PATCH] fec: fix buffer overrun

2014-02-03 Thread MORITA Kazutaka
After all the parities are set to out[], p will increase beyond ctx-dp. This adds a check for it. This also adds assert() to make sure that we don't overrun the buffer. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- lib/fec.c |3 ++- 1 file changed, 2 insertions(+), 1

[sheepdog] [PATCH] sheep: initialize object cache info

2014-02-03 Thread MORITA Kazutaka
This silences valgrind errors. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/object_cache.c |1 + 1 file changed, 1 insertion(+) diff --git a/sheep/object_cache.c b/sheep/object_cache.c index 09d3950..d51d459 100644 --- a/sheep/object_cache.c +++ b/sheep

[sheepdog] [PATCH] sheep: add helper function to make sure that req-data is string

2014-02-03 Thread MORITA Kazutaka
There is no guarantee that req-data is a string. Actually, the current code can cause a buffer overrun when, e.g., SD_OP_FORCE_RECOVER is requested. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- include/util.h |1 + lib/util.c | 16 sheep

[sheepdog] [PATCH] ops: add NULL check of req-op

2014-02-03 Thread MORITA Kazutaka
req-op can be NULL when the requested opcode is invalid. It's safe to add NULL checks before accessing req-op in ops.c. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/ops.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/sheep

Re: [sheepdog] [PATCH] add INFO level operation logging on each node.

2014-02-02 Thread MORITA Kazutaka
At Fri, 31 Jan 2014 13:31:29 +0900, Matsuo Yoshinori wrote: Hitoshi I discussed again. We have an another future idea that adds context id in the log message to trace easily. i.e. dog command logs: Jan 31 13:19:34 sheep-01-00 sheepdog admin operation[1998]: dog cluster format,

Re: [sheepdog] [PATCH v2] add INFO level operation logging on each node.

2014-02-02 Thread MORITA Kazutaka
At Fri, 31 Jan 2014 14:11:06 +0900, Yoshinori Matsuo wrote: Administrator couldn't track operation on each node without this function. This function logs only administrative operation at rx_main and tx_main. Operations that is not related to administrative operation are not logged in this

Re: [sheepdog] [PATCH 3/3] sheep/plain_store: move displaced object from read/write operation

2014-02-02 Thread MORITA Kazutaka
At Thu, 30 Jan 2014 12:47:49 +0800, Liu Yuan wrote: @@ -254,6 +267,11 @@ int default_init(void) return for_each_object_in_wd(init_objlist_and_vdi_bitmap, true, NULL); } +static inline bool stale_path(const char *path) +{ + return !!strstr(path, stale); +} + The function

Re: [sheepdog] [PATCH 0/3] fix object misplacement problem

2014-02-02 Thread MORITA Kazutaka
At Thu, 30 Jan 2014 12:47:46 +0800, Liu Yuan wrote: This patch set fixes the problem 'init_vdi_state() errorr out as failed to read inode header xxx, 0.' at sheep refuses to restart due to misplacement object but the fix would be more broader to fix all the misplacement problems if

Re: [sheepdog] [PATCH] tests/func: fix spurious error for 032

2014-02-02 Thread MORITA Kazutaka
At Fri, 31 Jan 2014 10:18:21 +0900, Hitoshi Mitake wrote: At Thu, 30 Jan 2014 14:05:45 +0800, Liu Yuan wrote: Signed-off-by: Liu Yuan namei.u...@gmail.com --- tests/functional/032 | 1 + 1 file changed, 1 insertion(+) Looks good to me. Reviewed-by: Hitoshi Mitake

Re: [sheepdog] [PATCH] dog: print new VID of current VDI when snapshot is created

2014-02-02 Thread MORITA Kazutaka
At Wed, 29 Jan 2014 16:46:40 +0900, Hitoshi Mitake wrote: Especially new VID of current VDI is useful information. So this patch lets dog print both of the IDs. Signed-off-by: Hitoshi Mitake mitake.hito...@lab.ntt.co.jp --- dog/vdi.c |9 + 1 file changed, 5 insertions(+), 4

[sheepdog] [PATCH] tests/functional: fix valgrind test

2014-02-02 Thread MORITA Kazutaka
Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- tests/functional/common.rc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/common.rc b/tests/functional/common.rc index 713136a..5388e48 100644 --- a/tests/functional/common.rc +++ b/tests

Re: [sheepdog] [sheepdog-users] [PATCH stable-0.7 v2 0/3] update for logger enhancement

2014-01-30 Thread MORITA Kazutaka
| 31 +++--- 3 files changed, 81 insertions(+), 37 deletions(-) Reviewed-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Thanks, Kazutaka -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog

Re: [sheepdog] [PATCH stable-0.7 3/3] logger: add a unified log destination option and syslog support

2014-01-29 Thread MORITA Kazutaka
At Wed, 29 Jan 2014 11:55:29 +0900, Hitoshi Mitake wrote: At Tue, 28 Jan 2014 16:53:56 +0900, MORITA Kazutaka wrote: At Tue, 28 Jan 2014 11:34:22 +0800, Liu Yuan wrote: On Mon, Jan 27, 2014 at 07:54:35PM +0900, Hitoshi Mitake wrote: This patch adds a new parameter dst

Re: [sheepdog] [PATCH 2/2] sheep: cleaning vdi deletion process, round 2

2014-01-29 Thread MORITA Kazutaka
At Tue, 28 Jan 2014 19:30:39 +0900, Hitoshi Mitake wrote: At Tue, 28 Jan 2014 17:04:14 +0900, MORITA Kazutaka wrote: At Tue, 28 Jan 2014 15:26:52 +0900, Hitoshi Mitake wrote: Only Kazutaka knows the reason. I guess it was planned to be paralle. I think deletion

Re: [sheepdog] [PATCH v3 00/12] introduce basic NFS server support

2014-01-29 Thread MORITA Kazutaka
At Wed, 29 Jan 2014 17:52:40 +0900, Hitoshi Mitake wrote: At Wed, 29 Jan 2014 16:26:14 +0800, Liu Yuan wrote: v3: - fix a gcc warning when nfs isn't enabled Now the problems I pointed out seem to be resolved. Thanks for your rework. This patchset looks good to me as a start point

Re: [sheepdog] [PATCH 2/2] sheep: cleaning vdi deletion process, round 2

2014-01-28 Thread MORITA Kazutaka
At Tue, 28 Jan 2014 15:26:52 +0900, Hitoshi Mitake wrote: Only Kazutaka knows the reason. I guess it was planned to be paralle. I think deletion code is really dirty and tricky and hard to maintain, need refactor and redesign. Of course I agree so I'm writing this patch.

Re: [sheepdog] [PATCH] sheepfs: fix complie error when http isn't enabled

2014-01-28 Thread MORITA Kazutaka
At Tue, 28 Jan 2014 15:02:02 +0900, Hitoshi Mitake wrote: At Tue, 28 Jan 2014 11:13:34 +0800, Liu Yuan wrote: Forgot to remove -lcurl in my last patch, remove it. Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheepfs/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1

Re: [sheepdog] [PATCH stable-0.7 3/3] logger: add a unified log destination option and syslog support

2014-01-27 Thread MORITA Kazutaka
At Tue, 28 Jan 2014 11:34:22 +0800, Liu Yuan wrote: On Mon, Jan 27, 2014 at 07:54:35PM +0900, Hitoshi Mitake wrote: This patch adds a new parameter dst= to the -l option for specifying logging destination. Possible parameters are below: - default: a dedicated file under sheep's directory

Re: [sheepdog] [PATCH] sheepfs: disable http interface if http is not enabled

2014-01-26 Thread MORITA Kazutaka
At Mon, 27 Jan 2014 12:02:02 +0800, Liu Yuan wrote: Signed-off-by: Liu Yuan namei.u...@gmail.com --- configure.ac| 8 +--- sheepfs/Makefile.am | 11 ++- sheepfs/core.c | 2 ++ sheepfs/sheepfs.h | 5 + 4 files changed, 22 insertions(+), 4 deletions(-)

Re: [sheepdog] [PATCH v1 0/3] add http interface for sheepfs

2014-01-23 Thread MORITA Kazutaka
At Thu, 23 Jan 2014 13:57:50 +0800, Robin Dong wrote: From: Robin Dong san...@taobao.com Some old softwares can only use files on filesystem as input, so we should add a new type of interface for sheepfs to access object-storage as a posix-filesystem. It is called http interface, since it

Re: [sheepdog] [PATCH v3] tests/func: fix Copies output due to format change

2014-01-23 Thread MORITA Kazutaka
At Thu, 23 Jan 2014 15:04:19 +0800, Liu Yuan wrote: also update 081.out for a wrong update by commit 71c86fa Signed-off-by: Liu Yuan namei.u...@gmail.com --- tests/functional/029.out | 16 ++-- tests/functional/030.out | 44 -

Re: [sheepdog] [PATCH] tests/func: remove --nosalt for openssl

2014-01-23 Thread MORITA Kazutaka
At Thu, 23 Jan 2014 15:06:35 +0800, Liu Yuan wrote: Remove it fix a segfault on ubuntu-13.04. Though I don't know why. Signed-off-by: Liu Yuan namei.u...@gmail.com --- tests/functional/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. Kazutaka --

Re: [sheepdog] [PATCH] add INFO level operation logging on each node.

2014-01-23 Thread MORITA Kazutaka
At Fri, 24 Jan 2014 12:53:15 +0900, Matsuo Yoshinori wrote: Wrapping dog command can also solve dog logging, but dog command may be called directory especially in the small cluster. And it's simpler that having a logging function in dog command than writing log on every wrapper scripts,

Re: [sheepdog] [PATCH v2] tests/func: fix Copies output due to format change

2014-01-22 Thread MORITA Kazutaka
At Wed, 22 Jan 2014 14:04:35 +0800, Liu Yuan wrote: diff --git a/tests/functional/common.rc b/tests/functional/common.rc index 3785bae..b304580 100644 --- a/tests/functional/common.rc +++ b/tests/functional/common.rc @@ -486,7 +486,7 @@ _cluster_format() _random() { - openssl

Re: [sheepdog] [PATCH] add INFO level operation logging on each node.

2014-01-22 Thread MORITA Kazutaka
At Wed, 22 Jan 2014 17:41:18 +0800, Liu Yuan wrote: On Wed, Jan 22, 2014 at 06:18:52PM +0900, Hitoshi Mitake wrote: At Tue, 21 Jan 2014 20:38:07 +0900, Matsuo Yoshinori wrote: I think the both logging function are needed because of the reasons below. Reason: 1. The dog and

Re: [sheepdog] [PATCH v2] tests/func: fix Copies output due to format change

2014-01-22 Thread MORITA Kazutaka
At Thu, 23 Jan 2014 14:08:23 +0800, Liu Yuan wrote: On Thu, Jan 23, 2014 at 02:45:48PM +0900, MORITA Kazutaka wrote: At Wed, 22 Jan 2014 14:04:35 +0800, Liu Yuan wrote: diff --git a/tests/functional/common.rc b/tests/functional/common.rc index 3785bae..b304580 100644

Re: [sheepdog] [PATCH] add INFO level operation logging on each node.

2014-01-22 Thread MORITA Kazutaka
At Fri, 10 Jan 2014 15:05:21 +0900, Yoshinori Matsuo wrote: Administrator couldn't track operation on each node without this function. This function logs only administrative operation at rx_main and tx_main. Operations that is not related to administrative operation are not logged in this

[sheepdog] [ANNOUNCE] Sheepdog 0.8.0 released and 0.9 development is now open

2014-01-21 Thread MORITA Kazutaka
Hi all, I'm pleased to announce the availability of the 0.8.0 release. The software is available from GitHub: https://github.com/sheepdog/sheepdog/archive/v0.8.0.tar.gz The changes from the previous release are available at: https://github.com/sheepdog/sheepdog/blob/v0.8.0/CHANGELOG.md

Re: [sheepdog] [PATCH v8 06/10] sheep: add traverse_btree() to list and check vdi

2014-01-19 Thread MORITA Kazutaka
At Wed, 20 Nov 2013 14:04:43 +0800, Robin Dong wrote: + +/* dump the information of B-tree */ +static void dump_btree(read_node_fn reader, struct sd_inode *inode) +{ +#ifdef DEBUG + sd_info(btree BEGIN); + traverse_btree(reader, inode, dump_cb, NULL); + sd_info(btree END);

Re: [sheepdog] [PATCH] logger: avoid using SIGHUP for detecting death of sheep

2014-01-19 Thread MORITA Kazutaka
At Tue, 14 Jan 2014 17:46:26 +0900, Hitoshi Mitake wrote: @@ -620,6 +607,15 @@ static void logger(char *log_dir, char *outfile) unblock_sighup(); + if (getppid() == 1) { + /* My parent (sheep process) is dead. */ +

Re: [sheepdog] [PATCH 1/2] sheep: use work queue for asynchronous local request

2014-01-17 Thread MORITA Kazutaka
At Fri, 17 Jan 2014 16:32:51 +0800, Liu Yuan wrote: On Fri, Jan 17, 2014 at 12:35:31PM +0900, MORITA Kazutaka wrote: From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp We can use our work queue framework for handling asynchrouns requests. There is no need to create short living events

Re: [sheepdog] [PATCH 2/3] event: add deferred event register/unregister mechanism

2014-01-16 Thread MORITA Kazutaka
At Thu, 16 Jan 2014 16:32:42 +0800, Liu Yuan wrote: Since current code works well, do we really need to introduce prioritized event loop which need some overhead of sorting events? For now with this patch set, the only benefit is that it looks more 'beautiful' that we have complete

Re: [sheepdog] [PATCH v2] sheep/recovery: fall out if get SD_RES_OLD_NODE_VER

2014-01-16 Thread MORITA Kazutaka
At Thu, 16 Jan 2014 15:25:40 +0800, Liu Yuan wrote: This will reduce the unecessary recovery procedures if multiple node events happens. Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/recovery.c | 30 ++ 1 file changed, 22 insertions(+), 8

Re: [sheepdog] [PATCH 2/3] event: add deferred event register/unregister mechanism

2014-01-16 Thread MORITA Kazutaka
At Thu, 16 Jan 2014 22:06:18 +0800, Liu Yuan wrote: On Thu, Jan 16, 2014 at 10:58:35PM +0900, MORITA Kazutaka wrote: At Thu, 16 Jan 2014 16:32:42 +0800, Liu Yuan wrote: Since current code works well, do we really need to introduce prioritized event loop which need some

[sheepdog] [PATCH 0/2] sheep: remove short living events

2014-01-16 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp We can implement asynchronous local requests on our work queue framework. MORITA Kazutaka (2): sheep: use work queue for asynchronous local request Revert sheep: allow {register,unregister}_event to be called in worker thread include

[sheepdog] [PATCH 1/2] sheep: use work queue for asynchronous local request

2014-01-16 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp We can use our work queue framework for handling asynchrouns requests. There is no need to create short living events. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/request.c| 73

[sheepdog] [PATCH 2/2] Revert sheep: allow {register, unregister}_event to be called in worker thread

2014-01-16 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Now there is no user who calls register_event in worker threads. This reverts commit 6601e90cf2c5168dfc15919caabcaef50eb75483. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- include/event.h | 15 --- lib/event.c

Re: [sheepdog] [PATCH] tests/functional: use a new variable RANDOM_GEN for _urandom()

2014-01-15 Thread MORITA Kazutaka
At Wed, 15 Jan 2014 18:12:42 +0900, Hitoshi Mitake wrote: At Tue, 14 Jan 2014 11:05:10 +0900, Hitoshi Mitake wrote: At Sun, 12 Jan 2014 19:59:51 +0900, Hitoshi Mitake wrote: On my ubuntu box (13.04), the openssl command called by _urandom() dies with segmentation fault (yes,

Re: [sheepdog] [PATCH] util: make xvalloc() return zeroed memory

2014-01-15 Thread MORITA Kazutaka
At Wed, 15 Jan 2014 16:54:42 +0900, Hitoshi Mitake wrote: At Wed, 15 Jan 2014 15:16:00 +0800, Liu Yuan wrote: This actuall fixes a bug that 045 fails with -ec specified. Instead of add a memset() to init_erasure_buffer() to fix the bug, I prefer to make xvalloc() a zeroed memory

Re: [sheepdog] [PATCH v2] sheep/http: use a dynamic buffer size for read/write buffer allocation

2014-01-15 Thread MORITA Kazutaka
At Wed, 15 Jan 2014 13:40:07 +0800, Liu Yuan wrote: Allocate the buffer size based on the request length so that small request won't take too much memory. Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/http/kv.c | 12 +++- 1 file changed, 7 insertions(+), 5

Re: [sheepdog] [PATCH] sheep/recovery: fall out if get SD_RES_OLD_NODE_VER

2014-01-15 Thread MORITA Kazutaka
At Wed, 15 Jan 2014 14:37:15 +0800, Liu Yuan wrote: This will reduce the unecessary recovery procedures if multiple node events happens. Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/recovery.c | 28 1 file changed, 20 insertions(+), 8 deletions(-)

Re: [sheepdog] [sheepdog-users] Release schedule for 0.8.0

2014-01-14 Thread MORITA Kazutaka
At Mon, 16 Dec 2013 09:05:04 +0100, Valerio Pachera wrote: Hi all, is there any news about sheepdog 0.8 release date? Sorry for my too late reply. I've been very busy for other works. I wanted to add a feature to reclaim unused objects before the release, but I'll release sheepdog 0.8 asap

[sheepdog] [ANNOUNCE] release candidate for sheepdog 0.8.0

2014-01-14 Thread MORITA Kazutaka
Hi all, I'd like to announce the release candidate for sheepdog 0.8.0. https://github.com/sheepdog/sheepdog/archive/v0.8.0-rc0.tar.gz Any kind of testing would be highly appreciated. Sheepdog 0.8.0 is planed to be released one week later:

[sheepdog] [PATCH] sheep: update log level help

2014-01-14 Thread morita . kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp We cannot specify a number as a log level. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/sheep.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sheep

Re: [sheepdog] [RFC] create onode before uploading object completed

2014-01-07 Thread MORITA Kazutaka
At Mon, 6 Jan 2014 17:16:22 +0800, Robin Dong wrote: Hi All, At present, the implemention of swift interface for creating object in sheepdog is: 1. lock container 2. check whether the onode with same object name is exists. 3. unlock container 4. upload object 5. create onode this

Re: [sheepdog] [RFC] create onode before uploading object completed

2014-01-07 Thread MORITA Kazutaka
At Wed, 8 Jan 2014 09:34:00 +0800, Robin Dong wrote: At Mon, 6 Jan 2014 17:16:22 +0800, Robin Dong wrote: Hi All, At present, the implemention of swift interface for creating object in sheepdog is: 1. lock container 2. check whether the onode with same object name is

Re: [sheepdog] [PATCH v2 1/2] sheep: introduce strict mode for write

2013-12-12 Thread MORITA Kazutaka
At Thu, 12 Dec 2013 13:45:33 +0800, Liu Yuan wrote: We make sure we write the exact number of copies to honor the promise of the redundancy for strict mode. This means that after writing of targeted data, they are redundant as promised and can withstand the random node failures. For

Re: [sheepdog] [PATCH 1/2] sheep: introduce strict mode for write

2013-12-12 Thread MORITA Kazutaka
At Thu, 12 Dec 2013 14:37:23 +0800, Liu Yuan wrote: Ah, yes. I think SD_FLAG_CMD_WRITE is kind of misleading (couple of times I forgot to assigne it while write something and spent time debugging it) I think so too. hdr.data_length != 0 may have same meaning to the flag. It

Re: [sheepdog] [PATCH 1/4] sheep: fix typo in help information

2013-11-28 Thread MORITA Kazutaka
At Wed, 27 Nov 2013 13:28:36 +0800, Robin Dong wrote: Maybe we can add -lock for cluster framework in sheepdog and just implement zookeeper -lock but leave corosync -lock empty. Will this be better? I prefer the approach. Thanks, Kazutaka -- sheepdog mailing list sheepdog@lists.wpkg.org

Re: [sheepdog] [PATCH 1/4] sheep: fix typo in help information

2013-11-26 Thread MORITA Kazutaka
At Tue, 26 Nov 2013 16:38:01 +0800, Robin Dong wrote: Getting a distributed lock is an expensive operation and it can causes a severe performance problem if we do it for each object creation. Can we find another way? Sheepdog is not designed to allow concurrent write access. It

Re: [sheepdog] [PATCH 1/4] sheep: fix typo in help information

2013-11-25 Thread MORITA Kazutaka
At Mon, 25 Nov 2013 15:03:46 +0800, Robin Dong wrote: The present implementation of http/swift is not perfect, it can't create too much containers or objects. So we want to store all objects in one hyper volume vdi and use new structure 'obj-inode' to identify its offset and length in this

Re: [sheepdog] [PATCH 1/4] sheep: fix typo in help information

2013-11-25 Thread MORITA Kazutaka
At Mon, 25 Nov 2013 17:02:06 +0800, Liu Yuan wrote: On Mon, Nov 25, 2013 at 05:43:19PM +0900, MORITA Kazutaka wrote: At Mon, 25 Nov 2013 15:03:46 +0800, Robin Dong wrote: The present implementation of http/swift is not perfect, it can't create too much containers or objects. So we

Re: [sheepdog] [PATCH] add MAINTAINERS file

2013-11-24 Thread MORITA Kazutaka
At Sat, 23 Nov 2013 02:30:32 +0800, Liu Yuan wrote: We have stable branch concept and I guess a simply copy of get_maintainer.pl from other project won't work out. Might need much work to tailor the script to our needs. I'd like to leave it to a future patch. Okay, applied thanks.

Re: [sheepdog] [PATCH v2] http: use hyper volume for bucket

2013-11-22 Thread MORITA Kazutaka
At Wed, 20 Nov 2013 19:36:10 +0800, Liu Yuan wrote: - use sd_inode helper to update inode correctly - pass system copy_policy when creating bucket Signed-off-by: Liu Yuan namei.u...@gmail.com --- -set 'direct' as false for sd_inode_write_vid() sheep/http/kv.c | 20

Re: [sheepdog] [PATCH] add MAINTAINERS file

2013-11-22 Thread MORITA Kazutaka
: Files and directories with wildcard patterns + +Sheepdog Overall +-- +M: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp +M: Liu Yuan namei.u...@gmail.com +B: sheeepdog/* +L: sheepdog@lists.wpkg.org + +Sheepdog Stable Branches +-- +M

Re: [sheepdog] [PATCH] sheep: remove unnecessary assignment in peer_read_obj

2013-11-20 Thread MORITA Kazutaka
At Fri, 15 Nov 2013 14:19:34 +0800, Liu Yuan wrote: There is currently no client using the rsp-obj.copies. Since this assignment is in the hottest code path, it is beneficial to remove it. Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/ops.c |5 - 1 file changed, 5

Re: [sheepdog] [PATCH v7 00/10] replace structure of inode-data_vdi_id[] from array to b-tree

2013-11-19 Thread MORITA Kazutaka
At Sat, 16 Nov 2013 22:57:29 +0800, Robin Dong wrote: Hi all, The size of vdi can only reach 4TB beacause the inode-data_vdi_id[] can only support 1 million objects. But 4TB is too small for storage application such as NAS and cloud-disk therefore we need to change the array of

Re: [sheepdog] decouple logger from dog

2013-11-14 Thread MORITA Kazutaka
At Tue, 12 Nov 2013 16:14:20 +0800, Liu Yuan wrote: Use fprintf directly as we need What's the benefit? sd logger is designed to be able to use fprintf() for foreground programs. In addition, we cannot completely decouple logger from dog anyway because dog can call sd_emerg() in panic().

Re: [sheepdog] [PATCH v2 1/2] dog: enable 'cluster format -c x:y'

2013-11-14 Thread MORITA Kazutaka
At Thu, 14 Nov 2013 13:45:47 +0800, Liu Yuan wrote: This patch enables 'cluster format -c x:y' option for users to set a cluster-wide default scheme. Signed-off-by: Liu Yuan namei.u...@gmail.com --- dog/cluster.c| 25 + dog/common.c |

Re: [sheepdog] [PATCH 3/4] http: parse CONTENT_LENGTH only when necessary

2013-11-14 Thread MORITA Kazutaka
At Thu, 14 Nov 2013 17:03:53 +0800, Liu Yuan wrote: This will remove the unnecessary setting conent length for 'get' operation Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/http/http.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

Re: [sheepdog] [PATCH 4/4] http: simplify http_run_request

2013-11-14 Thread MORITA Kazutaka
At Thu, 14 Nov 2013 17:03:54 +0800, Liu Yuan wrote: Signed-off-by: Liu Yuan namei.u...@gmail.com --- sheep/http/http.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/sheep/http/http.c b/sheep/http/http.c index 644cdc5..e9afedc 100644 ---

Re: [sheepdog] [PATCH 2/4] http: use REQUEST_URI instead of DOCUMENT_URI

2013-11-14 Thread MORITA Kazutaka
At Thu, 14 Nov 2013 17:03:52 +0800, Liu Yuan wrote: Current code will segfault if we don't specify DOCUMENT_URI in nginx conf file. And we should use REQUEST_URI because REQUEST_URI includes the Query String (?q=testing...) where DOCUMENT_URI does not. ? is needed for container list

Re: [sheepdog] [PATCH 1/2] dog: enable 'cluster format -c x:y'

2013-11-13 Thread MORITA Kazutaka
At Fri, 1 Nov 2013 16:31:00 +0800, Liu Yuan wrote: diff --git a/dog/common.c b/dog/common.c index 4480b99..c243386 100644 --- a/dog/common.c +++ b/dog/common.c @@ -435,3 +435,41 @@ void dump_loglevels(bool err) sd_info(%s\t(%d), loglevel_table[i], i); } } +

Re: [sheepdog] [PATCH 2/2] tests/func: add a test dedicated for 'cluster format'

2013-11-13 Thread MORITA Kazutaka
At Fri, 1 Nov 2013 16:31:01 +0800, Liu Yuan wrote: Signed-off-by: Liu Yuan namei.u...@gmail.com --- tests/functional/077 | 27 +++ tests/functional/077.out | 11 +++ tests/functional/group |1 + 3 files changed, 39 insertions(+) create mode

Re: [sheepdog] [PATCH v4 2/2] sheepdog: support user-defined redundancy option

2013-11-01 Thread MORITA Kazutaka
At Thu, 31 Oct 2013 13:49:28 +0800, Liu Yuan wrote: +/* + * Sheepdog support two kinds of redundancy, full replication and erasure + * coding. + * + * # create a fully replicated vdi with x copies + * -o redundancy=x (1 = x = SD_MAX_COPIES) + * + * # create a erasure coded vdi with x

Re: [sheepdog] [PATCH v5 RESENT 0/2] sheepdog: add user-defined redundancy option

2013-11-01 Thread MORITA Kazutaka
/sheepdog.c | 127 + include/block/block_int.h |1 + 2 files changed, 105 insertions(+), 23 deletions(-) Reviewed-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman

[sheepdog] [PATCH 6/9] sheep: add framework for http drivers

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp This introduces a framework of http driver for object storage feature. We can specify several http drivers to control http requests. The drivers are stackable and work like a WSGI pipeline of Python. Usage $ sheep -r [host=hostname,][port

[sheepdog] [PATCH 0/9] add preliminary support for S3 and Swift APIs

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp This adds a basic support for S3 and Swift APIs. TODO items: - Improve compatibility with S3 and Swift. - Improve performance of the underlying kvs feature. - Add support for authorization. - Add support for large objects than 4MB. - Add

[sheepdog] [PATCH 1/9] util: add helper functions to process a requested URI

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- include/util.h | 3 +++ lib/util.c | 53 + 2 files changed, 56 insertions(+) diff --git a/include/util.h b/include/util.h

[sheepdog] [PATCH 4/9] http: usr CRLF for endline of http header

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/http.c b/sheep/http.c index e4c1657..9e5551e 100644 --- a/sheep/http.c +++ b/sheep/http.c

[sheepdog] [PATCH 8/9] sheep/http: add s3 driver

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/Makefile.am | 2 +- sheep/http/s3.c | 283 ++ 2 files changed, 284 insertions(+), 1 deletion(-) create mode 100644

[sheepdog] [PATCH 3/9] http: add uri and status to http_request

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp These fields are necessary to implement REST APIs in the later patch. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/http.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git

[sheepdog] [PATCH 5/9] http: move some structures and definitions to http.h

2013-10-31 Thread MORITA Kazutaka
From: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp This prepares for introducing http driver implementation. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- sheep/Makefile.am | 2 +- sheep/http.c | 76 +-- sheep/http.h

  1   2   3   4   5   6   7   8   9   10   >