search for: dlm_new_lockspace

Displaying 3 results from an estimated 3 matches for "dlm_new_lockspace".

2009 Jul 06
1
lvb length issue [was Re: [ocfs2-tools-devel] question of ocfs2_controld (Jun 27)]
...le LVB sizes? > In this case, it cannot. During mkfs.ocfs2, libdlm gets called to create a new lockspace via ioctl handler inside fs/dlm, which (indeed) is fs/dlm/user.c:device_create_lockspace(): 404 static int device_create_lockspace(struct dlm_lspace_params *params) ... ... 412 413 error = dlm_new_lockspace(params->name, strlen(params->name), 414 &lockspace, params->flags, DLM_USER_LVB_LEN); ... ... 431 } DLM_USER_LVB_LEN is defined to 32. When mounting an ocfs2 volume, ocfs2 code calls dlm_new_lockspace directly. Which is in fs/ocfs2/stack_user.c:user_cluster_connect()...
2013 Sep 06
1
[PATCH 1/6] Add dlm operations placeholders
...t(struct ocfs2_cluster_connection *conn) { dlm_lockspace_t *fsdlm; struct ocfs2_live_connection *uninitialized_var(control); - int rc = 0; + int rc = 0, ops_rv; BUG_ON(conn == NULL); @@ -828,12 +848,18 @@ static int user_cluster_connect(struct ocfs2_cluster_connection *conn) } rc = dlm_new_lockspace(conn->cc_name, NULL, DLM_LSFL_FS, DLM_LVB_LEN, - NULL, NULL, NULL, &fsdlm); + &ocfs2_ls_ops, conn, &ops_rv, &fsdlm); if (rc) { ocfs2_live_connection_drop(control); goto out; } + if (ops_rv < 0) { + printk(KERN_ERR "ocfs2: dlm lockspace ops c...
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2. Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights: The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to