Re: [Ocfs2-devel] [RFC] ocfs2/dlm: support range lock

2015-01-28 Thread David Weber
Hi, On 01/26/2015 04:28 AM, yangwenfang wrote: What: Byte range lock is applied to lock a region of a file to accelerate reading/writing concurrently. Why: Currently ocfs2 does not support byte range lock. Since multiple nodes may concurrently update/write at different

Re: [Ocfs2-devel] [RFC] ocfs2/dlm: support range lock

2015-01-28 Thread Goldwyn Rodrigues
Hi Yangwenfang, I appreciate the effort in this regard. On 01/26/2015 06:28 AM, yangwenfang wrote: What: Byte range lock is applied to lock a region of a file to accelerate reading/writing concurrently. Why: Currently ocfs2 does not support byte range lock. Since multiple nodes

[Ocfs2-devel] When fstrim, ocfs2_trim_group beyond end of device.

2015-01-28 Thread Changlimin
Hi, In Linux 3.18 kenrel, when fstrim a ocfs2 file system, fstrim shows IO error. Some logs in syslog: attempt to access beyond end of device sdb: rw=129, want=8390656, limit=8388608 (fstrim,36298,6):ocfs2_trim_group:7274 ERROR:

[Ocfs2-devel] [PATCH 1/6] Get cluster list info from corosync

2015-01-28 Thread Mark Fasheh
From: Goldwyn Rodrigues rgold...@suse.de Instead of getting the cluster list from controld, we get the list directly from Corosync's cmap. This introduces a new config flag BUILD_CMAP_SUPPORT, which translates to HAVE_CMAP defines for libo2cb. Signed-off-by: Goldwyn Rodrigues rgold...@suse.com

[Ocfs2-devel] [PATCH 0/6] ocfs2-tools: userspace clustering updates

2015-01-28 Thread Mark Fasheh
Hi, The following series of patches updates ocfs2-tools to work with the latest userspace clustering releases from SUSE. Kernel clustering (o2cb) functionality is not changed. The first 3 patches teach ocfs2-tools about the nocontrold feature which Goldwyn implemented last year.

[Ocfs2-devel] [PATCH 6/6] Add users guide (txt version) and o2cb README to DIST_FILES so they are included in the tarball output of 'make dist'.

2015-01-28 Thread Mark Fasheh
Signed-off-by: Mark Fasheh mfas...@suse.de --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5bd380b..9519a4e 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,7 @@ DIST_FILES = \ CREDITS \ MAINTAINERS

[Ocfs2-devel] [PATCH 4/6] mkfs: Setup cluster_stack if not setup based on args

2015-01-28 Thread Mark Fasheh
From: Goldwyn Rodrigues rgold...@suse.de Signed-off-by: Goldwyn Rodrigues rgold...@suse.com Signed-off-by: Mark Fasheh mfas...@suse.de --- mkfs.ocfs2/check.c | 9 + 1 file changed, 9 insertions(+) diff --git a/mkfs.ocfs2/check.c b/mkfs.ocfs2/check.c index f05dc72..79583bf 100644 ---

[Ocfs2-devel] [PATCH 5/6] Auto setup o2cb stack as default if no stack is setup

2015-01-28 Thread Mark Fasheh
From: Goldwyn Rodrigues rgold...@suse.de Signed-off-by: Goldwyn Rodrigues rgold...@suse.com Signed-off-by: Mark Fasheh mfas...@suse.de --- libo2cb/o2cb_abi.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libo2cb/o2cb_abi.c b/libo2cb/o2cb_abi.c index

[Ocfs2-devel] [PATCH 2/6] Don't use controld if kernel supports DLM callbacks

2015-01-28 Thread Mark Fasheh
From: Goldwyn Rodrigues rgold...@suse.de This requires dlm_lt libraries and they have been added wherever required. Note, we can possibly remove runtime load of dlm_lt and should use compile time options. We are detecting the presence of libdlm during compile time anyways. Signed-off-by:

[Ocfs2-devel] [PATCH 3/6] Auto setup cluster_stack based on what is on disk

2015-01-28 Thread Mark Fasheh
From: Goldwyn Rodrigues rgold...@suse.de This happens only the first time. mount.ocfs2 reads the stack from the filesystems superblock. If the stack is not setup, it will modprobe the modules and write the appropriate stack name to cluster_stack file. If it is already present, it tries to

Re: [Ocfs2-devel] [RFC] ocfs2/dlm: support range lock

2015-01-28 Thread Wengang Wang
在 2015年01月29日 08:05, Goldwyn Rodrigues 写道: Hi Yangwenfang, I appreciate the effort in this regard. On 01/26/2015 06:28 AM, yangwenfang wrote: What: Byte range lock is applied to lock a region of a file to accelerate reading/writing concurrently. Why: Currently ocfs2 does not

Re: [Ocfs2-devel] [RFC] ocfs2/dlm: support range lock

2015-01-28 Thread yangwenfang
On 2015/1/29 8:05, Goldwyn Rodrigues wrote: Hi Yangwenfang, I appreciate the effort in this regard. On 01/26/2015 06:28 AM, yangwenfang wrote: What: Byte range lock is applied to lock a region of a file to accelerate reading/writing concurrently. Each lock resource deploys an

Re: [Ocfs2-devel] [RFC] ocfs2/dlm: support range lock

2015-01-28 Thread yangwenfang
On 2015/1/27 15:08, Srinivas Eeda wrote: Hi Yangwenfang, thank you very much for initiating this RFC :). This feature is long due for OCFS2 and we are also interested in implementing this feature. Wengang(cc'ed) has been looking into analysing and giving an attempt to implement it. We