diff options
author | David Teigland <teigland@redhat.com> | 2011-11-02 14:30:58 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-01-04 08:56:31 -0600 |
commit | 60f98d1839376d30e13f3e452dce2433fad3060e (patch) | |
tree | b8b43859ad26519bd75a40920f6d1ca46f2d44a5 /fs/dlm/user.c | |
parent | 757a42719635495779462514458bbfbf12a37dac (diff) | |
download | op-kernel-dev-60f98d1839376d30e13f3e452dce2433fad3060e.zip op-kernel-dev-60f98d1839376d30e13f3e452dce2433fad3060e.tar.gz |
dlm: add recovery callbacks
These new callbacks notify the dlm user about lock recovery.
GFS2, and possibly others, need to be aware of when the dlm
will be doing lock recovery for a failed lockspace member.
In the past, this coordination has been done between dlm and
file system daemons in userspace, which then direct their
kernel counterparts. These callbacks allow the same
coordination directly, and more simply.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/user.c')
-rw-r--r-- | fs/dlm/user.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/dlm/user.c b/fs/dlm/user.c index d8ea607..eb4ed9b 100644 --- a/fs/dlm/user.c +++ b/fs/dlm/user.c @@ -392,8 +392,9 @@ static int device_create_lockspace(struct dlm_lspace_params *params) if (!capable(CAP_SYS_ADMIN)) return -EPERM; - error = dlm_new_lockspace(params->name, strlen(params->name), - &lockspace, params->flags, DLM_USER_LVB_LEN); + error = dlm_new_lockspace(params->name, NULL, params->flags, + DLM_USER_LVB_LEN, NULL, NULL, NULL, + &lockspace); if (error) return error; |