lock_dlm.c (0b7877d4eea3f93e3dd941999522bbd8c538cb53) | lock_dlm.c (4875647a08e35f77274838d97ca8fa44158d50e2) |
---|---|
1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright 2004-2011 Red Hat, Inc. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 1195 unchanged lines hidden (view full) --- 1204 error = -EINVAL; 1205 goto fail_free; 1206 } 1207 memset(cluster, 0, sizeof(cluster)); 1208 memcpy(cluster, table, strlen(table) - strlen(fsname)); 1209 fsname++; 1210 1211 flags = DLM_LSFL_FS | DLM_LSFL_NEWEXCL; | 1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright 2004-2011 Red Hat, Inc. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 1195 unchanged lines hidden (view full) --- 1204 error = -EINVAL; 1205 goto fail_free; 1206 } 1207 memset(cluster, 0, sizeof(cluster)); 1208 memcpy(cluster, table, strlen(table) - strlen(fsname)); 1209 fsname++; 1210 1211 flags = DLM_LSFL_FS | DLM_LSFL_NEWEXCL; |
1212 if (ls->ls_nodir) 1213 flags |= DLM_LSFL_NODIR; | |
1214 1215 /* 1216 * create/join lockspace 1217 */ 1218 1219 error = dlm_new_lockspace(fsname, cluster, flags, GDLM_LVB_SIZE, 1220 &gdlm_lockspace_ops, sdp, &ops_result, 1221 &ls->ls_dlm); --- 104 unchanged lines hidden --- | 1212 1213 /* 1214 * create/join lockspace 1215 */ 1216 1217 error = dlm_new_lockspace(fsname, cluster, flags, GDLM_LVB_SIZE, 1218 &gdlm_lockspace_ops, sdp, &ops_result, 1219 &ls->ls_dlm); --- 104 unchanged lines hidden --- |