git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a551ee5
)
s3:vfs_gpfs: remove fallback to linux_setlease
author
Christian Ambach
<ambi@samba.org>
Thu, 22 Mar 2012 17:11:47 +0000
(18:11 +0100)
committer
Christian Ambach
<ambi@samba.org>
Thu, 22 Mar 2012 17:41:22 +0000
(18:41 +0100)
if setting the lease in GPFS failed, there is not much sense in trying
to set a lease just locally that would not inform us of openers
on other cluster nodes
source3/modules/vfs_gpfs.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_gpfs.c
b/source3/modules/vfs_gpfs.c
index 6d66b291870be974693d1113f956f9da53d85656..204017d6fcec8d53b8e34a55261a2f352b75bd2f 100644
(file)
--- a/
source3/modules/vfs_gpfs.c
+++ b/
source3/modules/vfs_gpfs.c
@@
-108,12
+108,6
@@
static int vfs_gpfs_setlease(vfs_handle_struct *handle, files_struct *fsp,
ret = set_gpfs_lease(fsp->fh->fd,leasetype);
}
- if (ret < 0) {
- /* This must have come from GPFS not being available */
- /* or some other error, hence call the default */
- ret = linux_setlease(fsp->fh->fd, leasetype);
- }
-
END_PROFILE(syscall_linux_setlease);
return ret;