Displaying 5 results from an estimated 5 matches for "f_getlease".
2007 Jan 22
0
checking a locked file
...default locking parameters on 3.0.10 with a 2.6 kernel. I've
tried checking posix byte ranges, posix locking, and kernel op locks.
Here is my test program:
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
/* kernel op locks */
#define F_GETLEASE 1025
int main(int argc, char **argv)
{
struct flock the_lock;
int f;
int retlck;
int smblck;
if(argc != 2) {
fprintf(stdout, "Usage: %s <file>\n", argv[0]);
return 1;
}
f = open(argv[1], O_RDONLY);
the_lock.l_type = F_WRLCK;
the_lock.l_whence = SEEK_SET;
the_l...
2007 May 22
1
Re: Ocfs2-users Digest, Vol 41, Issue 21
...- loopback is supported, but data written will not
> be cluster coherent.
> - quotas
> - cluster aware flock <----------------------------------------
> - Directory change notification (F_NOTIFY)
> - Distributed Caching (F_SETLEASE/F_GETLEASE/break_lease)
> - POSIX ACLs
> - readpages / writepages (not user visible)
If this is an ill-informed question, please enlighten me. I'm following
this list for quite some time and have done some tests (quite some time
ago) and noticed then that if you write from two machi...
2008 Oct 17
3
[PATCH 0/3] ocfs2: add security EA and ACL support v3
Hi,
These three patches fix the problems in the version two.
And them base on the Tao's patches:
ocfs2/xattr: xattr improvement
The first patch fix some problem in xattr code.
The second patch add security EA support.
The third patch add ACL support.
Best regards,
tiger
2003 Apr 20
1
log of build of 2.2.8a on Solaris9 using SUN's studio7 cc.
...-lsec -lgen -lsocket -lnsl -ldl 1>&5
"configure", line 10371: warning: old-style declaration or incorrect type for: main
configure: failed program was:
#line 10364 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <fcntl.h>
#ifndef F_GETLEASE
#define F_GETLEASE 1025
#endif
main() {
int fd = open("/dev/null", O_RDONLY);
return fcntl(fd, F_GETLEASE, 0) == -1;
}
configure:10401: checking for kernel change notify support
configure:10424: /opt/SUNWspro/bin/cc -o conftest -O -fast -xtarget=ultra -xarch=v8plusa -I/usr/...
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one,
with changes coming from the blktap2.5 one.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>