search for: lock_read

Displaying 8 results from an estimated 8 matches for "lock_read".

Did you mean: sock_read
2020 Jun 30
3
Issues with FLOCK on NFS Share
On 30/06/2020 14:55, Ralph Boehme via samba wrote: > Howdy! > > Am 6/30/20 um 2:37 PM schrieb Georg.Biberger--- via samba: >> We are using Samba 4.10.16 as a readonly file server on a linux box with SLES 12. All is working fine with our NAS NFS Shares. We are now trying to integrate new NFS Shares from an archive provider. We have some problems with samba not responding, when
2007 Mar 13
10
Need some explanation on Samba/NFS locks handle
...kernel_flock(files_struct *fsp, uint32 share_mode) { #if HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_SHARE_NONE) { kernel_mode = LOCK_MAND; } if (kernel_mode) { flock(fsp->fh->fd, kernel_mode); } #endif ; } Regards,
2020 Jul 01
0
Issues with FLOCK on NFS Share
...fd, uint32_t share_mode, uint32_t access_mask) { #ifdef HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_SHARE_NONE) { kernel_mode = LOCK_MAND; } if (kernel_mode) { flock(fd, kernel_mode); } #endif ; } Georg
2020 Jul 01
2
Issues with FLOCK on NFS Share
...fd, uint32_t share_mode, uint32_t access_mask) { #ifdef HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else if (share_mode == FILE_SHARE_NONE) { kernel_mode = LOCK_MAND; } if (kernel_mode) { flock(fd, kernel_mode); } #endif ; } Georg -- To unsubscribe from this list go to the following URL and read the instructions: https:...
2006 Jun 26
2
[klibc 28/43] mips support for klibc
...K64 34 +#define F_SETLKW64 35 + +#define FD_CLOEXEC 1 + +#define F_RDLCK 0 +#define F_WRLCK 1 +#define F_UNLCK 2 + +#define F_EXLCK 4 +#define F_SHLCK 8 + +#define F_INPROGRESS 16 + +#define LOCK_SH 1 +#define LOCK_EX 2 +#define LOCK_NB 4 +#define LOCK_UN 8 + +#define LOCK_MAND 32 +#define LOCK_READ 64 +#define LOCK_WRITE 128 +#define LOCK_RW 192 + +typedef struct flock { + short l_type; + short l_whence; + loff_t l_start; + loff_t l_len; + pid_t l_pid; +} flock_t; + +#define F_LINUX_SPECIFIC_BASE 1024 + +#endif /* _KLIBC_ARCHFCNTL_H */ diff --git a/usr/include/arch/mips/klibc/archsetjmp.h...
2003 Apr 20
1
log of build of 2.2.8a on Solaris9 using SUN's studio7 cc.
...erencing errors. No output written to conftest configure: failed program was: #line 10456 "configure" #include "confdefs.h" #include <sys/types.h> #include <fcntl.h> #include <signal.h> #include <sys/file.h> #ifndef LOCK_MAND #define LOCK_MAND 32 #define LOCK_READ 64 #endif main() { exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0); } configure:10498: checking for IRIX kernel oplock type definitions configure:10512: /opt/SUNWspro/bin/cc -c -O -fast -xtarget=ultra -xarch=v8plusa -I/usr/local/include -I/usr/sfw/include -I/opt/...
2003 Dec 01
0
No subject
.../ld: Unsatisfied symbols: flock (code) configure: failed program was: #line 9554 "configure" #include "confdefs.h" #include <sys/types.h> #include <fcntl.h> #include <signal.h> #include <sys/file.h> #ifndef LOCK_MAND #define LOCK_MAND 32 #define LOCK_READ 64 #endif main() { exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0); } - Regards, Reinout Wijnveen "All those who believe in psychokinesis raise my hand" ICT-N/Philips Semiconductors Nijmegen Address: AC 0.062, Gerstweg 2, 6534 AE Nijmegen, Fax:...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: