------------------------------------------------------------
revno: 671
revision-id:[EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: s3-ctdb-tridge
timestamp: Thu 2007-11-22 13:09:26 +1100
message:
  explain why we don't use the usual -1/EACCES trick
modified:
  source/modules/gpfs.c          gpfs.c-20070210173807-1wjifrbwaz6xnmgl-647
=== modified file 'source/modules/gpfs.c'
--- a/source/modules/gpfs.c     2007-11-22 01:56:57 +0000
+++ b/source/modules/gpfs.c     2007-11-22 02:09:26 +0000
@@ -106,6 +106,11 @@
                gpfs_type = GPFS_LEASE_WRITE;
        }
 
+       /* we unconditionally set CAP_LEASE, rather than looking for
+          -1/EACCES as there is a bug in some versions of
+          libgpfs_gpl.so which results in a leaked fd on /dev/ss0
+          each time we try this with the wrong capabilities set
+       */
        linux_set_lease_capability();
        return gpfs_set_lease_fn(fd, gpfs_type);
 }

Reply via email to