search for: flock

Displaying 20 results from an estimated 449 matches for "flock".

Did you mean: block
2010 Aug 27
6
Samba and file locking
...ng together? I remember something about turning oplocks off in samba, and while testing samba I noticed this [2010/08/27 17:30:59, 3] lib/util.c:fcntl_getlock(2064) fcntl_getlock: lock request failed at offset 75694080 count 65536 type 1 (Function not implemented) But I also found out about the flock option for lustre. Should I set flock on all clients? or can I just use localflock option on the fileserver? David -- Personally, I liked the university. They gave us money and facilities, we didn''t have to produce anything! You''ve never been out of college! You don''t...
2019 Jan 21
0
[klibc:master] fcntl: Fix struct flock for 32-bit architectures
...bs/klibc/klibc.git;a=commit;h=11bd4ea5f3d960c4d208180deae91d88aa940149 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Mon, 21 Jan 2019 03:39:34 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Mon, 21 Jan 2019 03:45:04 +0000 [klibc] fcntl: Fix struct flock for 32-bit architectures In Linux 2.6.30 the definition of struct flock stopped using off_t (which we define) in favour of __kernel_off_t. This meant we started using a 32-bit struct flock with 64-bit fcntl numbers. Disable the kernel's definition of struct flock and define it ourselves with...
2014 Oct 29
1
smbstatus hang with CTDB 2.5.4 and Samba 4.1.13
...or node 1. It has 0x02 vs our 0x00 2014/10/29 11:12:48.462448 [recoverd:6488266]: Use flags 0x00 from local recmaster node for cluster update of node 1 flags 2014/10/29 11:12:48.483362 [3932342]: Freeze priority 1 2014/10/29 11:12:58.574548 [3932342]: /usr/smb_cluster/etc/ctdb/debug_locks.sh[23]: flock: not found 2014/10/29 11:13:08.569593 [3932342]: /usr/smb_cluster/etc/ctdb/debug_locks.sh[23]: flock: not found 2014/10/29 11:13:18.604124 [3932342]: /usr/smb_cluster/etc/ctdb/debug_locks.sh[23]: flock: not found 2014/10/29 11:13:28.638279 [3932342]: /usr/smb_cluster/etc/ctdb/debug_locks.sh[2...
2003 Apr 05
1
flock a file in a NT server
Hi, I'm writing an application with C under Linux and I'm trying to use the flock system function to lock a file of an NT4 Server over Samba. The problem is that the lock works well within the same machine but if it is a process on another machine (the same program) the one that tries to access the locked file, the process is not blocked until the lock is released but given full...
2007 May 22
1
Re: Ocfs2-users Digest, Vol 41, Issue 21
...gt; Features which OCFS2 does not support yet: > - extended attributes > - readonly mount > - shared writeable mmap > - 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, plea...
2008 Jan 25
1
Windows share modes and Linux file locking, flock & fcntl
...ected, and applications using the file system locally and remotely see the locks set by the other. However, if a program on the Windows client opens a file with a share mode that denies access to other processes, I can't seem to detect this in a local Linux process, either with fcntl() or with flock(). I included the test programs I used below. I have seen references that this should be possible (http://lists.samba.org/archive/samba/2004-February/080455.html last paragraph) but I may be misunderstanding things. strace on the smbd process handling the request from the Windows client shows this...
2011 Apr 12
2
advisory file locks in linux - do they work?
Hi - I'm trying to verify if OpenSSH/SFTP will in fact lock files with advisory file locking in Linux. I can test locking with the linux "flock" command to verify that file locking does work - but when I upload or download a file with SFTP it will not detect a lock. I'm asking about Linux specifically because about a year ago I was doing a similar process in Solaris 9 and it seemed to work. OS'n I've tried this on- RH...
2007 Mar 29
1
locking question
...to a login server and a mailing list server. All three machines are running the lockd daemon. Everybody wants to lock differently 1) procmail (delivering for sendmail), which seems to want to use dotlocking, fcntl and lockf locking; for whatever reasons, the compile time tests seem to disallow flock. 2) UWIMAP which according to wiki.dovecot.org/Migration/UW uses: mbox_read_locks = flock mbox_write_locks = dotlock flock 3) I want to run dovecot in the same environment as I switch over, for which the locking strategy is supposed to be (according to http://wiki.dovecot.org/MboxLocking) mbox_re...
2003 May 17
1
Postfix locking equivalence?
/etc/postfix/main.cf.default: mailbox_delivery_lock = flock, dotlock Is flock equivalent to dovecot's fnctl locking? For mbox what type of locking settings should I be using? (No NFS, only local filesystem.) Warren Togami warren at togami.com
2007 Jul 11
9
NFS cache flush tester
...(uid, gid): OK Info: Attr cache flush chmod(mode): OK Info: Testing data cache.. Info: data cache: Appends weren't noticed (ret = 0) Info: - Attribute cache flush helped Info: data cache (no caching): failed Info: data cache (attr cache): failed Info: data cache (lockf()): OK Info: data cache (flock(shared)): OK Info: data cache (flock(exclusive)): OK -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachm...
2007 Mar 15
2
flock problems with index files and passwd-file
While experimenting a bit, I found that for some reason, locking indexes with flock is problematic, but only if user is taken from passwd-file. The host system is openbsd 3.9, dovecot's configuration is added at the bottom. Authentication is from two places - first from mentioned passwd-file, then from passwd file using bsdauth (in this case, there're no problems with...
2020 Jun 30
3
Issues with FLOCK on NFS Share
...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 accessing files on these archive NFS shares. >> We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba! > kernel oplocks = no Only problem with that, it is the default setting :-( Can we see your smb.conf ? Rowland
2012 Jun 19
2
smb locks
Hi, I see samba with ctdb locking has following mapping when kernel oplocks = yes. share mode reservations = flock(2) posix byte range locking = fcntl(2) SMB locks (mandatory) = ctdb using brlock.tdb oplocks = fcntl(2) using F_SETLEASE Am I correct or I am missing something? I hope only SMB range locks are implemented with tdb, all else are being used from filesystem. What happens if flock or fcntl...
2006 Nov 24
4
[OT] I Finally Got an Atom Feed
Hi folks, I took a break from Mongrel today and instead whipped up an Atom feed generator for my site. People who love or utterly hate my essays will lover or utterly hate to subscribe to it. http://www.zedshaw.com/feed.atom Let me know if it isn''t working well in your favorite feed reader. -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/
2020 Jul 01
0
Issues with FLOCK on NFS Share
...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 accessing files on these archive NFS shares. >> We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba! > kernel oplocks = no >Only problem with that, it is the default setting :-( > Can we see your smb.conf ? Hi, I have now set kernel share modes = no which solves this issue! Attached my smb.conf. I was wonder...
2011 Sep 06
0
[PATCH] include: [sys/file.h] define flock(2) there
SUSv3 is silent on that definition, but seen several userspace software that expects flock to be defined in that file and complain that it is missing in klibc. Current declaration is in unistd.h. Signed-off-by: maximilian attems <max at stro.at> --- usr/include/sys/file.h | 9 +++++++++ usr/include/unistd.h | 1 - 2 files changed, 9 insertions(+), 1 deletions(-) create m...
2007 Apr 24
1
locking questions
...ry 2) I earlier asked, but don't think I got an answer to this question: > Everybody wants to lock differently > 1) procmail (delivering for sendmail), which seems to want to use > dotlocking, fcntl and lockf locking; for whatever reasons, the compile > time tests seem to disallow flock. > 2) UWIMAP which according to wiki.dovecot.org/Migration/UW uses: > mbox_read_locks = flock > mbox_write_locks = dotlock flock > 3) I want to run dovecot in the same environment as I switch over, for > which the locking strategy is supposed to be (according to > http://wiki.do...
2020 Jun 30
2
Issues with FLOCK on NFS Share
...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 accessing files on these archive NFS shares. We have done some Samba-Debugging and found out, that the call to flock in source3/lib/system.c (kernel_flock) do not return and is blocking samba! Is it necessary to use file locking when using Samba as fileserver for readonly access with NFS shares? Can I disable locking with #define HAVE_KERNEL_SHARE_MODES 0 in config.h. What are the consequences? Kind regards Geo...
2018 Mar 05
2
SQLite3 on 3 node cluster FS?
Hi, tl;dr summary of below: flock() works, but what does it take to make sync()/fsync() work in a 3 node GFS cluster? I am under the impression that POSIX flock, POSIX fcntl(F_SETLK/F_GETLK,...), and POSIX read/write/sync/fsync are all supported in cluster operations, such that in theory, SQLite3 should be able to atomically lock...
2007 Sep 13
0
flock() vs. fnctl()
Hi list, as I know from the README in the source files OCFS2 does not support cluster aware flock. Our web developers have to use the php flock() function. There is a second method how php can handle locking - via the fnctl() function. Will this be supportet? I assume that OCFS2 supports the c-function open() mit O_CREATE as well as O_EXCL. Am I right? Regards, Stephan