Displaying 20 results from an estimated 2000 matches similar to: "dotlock O_EXCL query"
2002 Jun 17
1
O_EXCL unreliable?
Hi all,
I fear I can't rely on "open (path, O_CREAT | O_EXCL)" behaviour
on samba share.
The libc's doc says:
If both `O_CREAT' and `O_EXCL' are set, then `open' fails
if the specified file already exists. This is guaranteed
to never clobber an existing file.
But this isn't probably true on network filesystems. When I run
this tiny program on
2004 Jul 20
3
Bug? 1.0.0-test28 NFS locking problems
Hi
Slight problem - linux 2.4 running dovecot, Solaris 2.8 home directory
server. Full lockd support etc.
I had to make the following code patches (at end of mail for clarity) to
get dovecot to read the users mbox files at all.
1) fcntl with F_SETLKW will not work against a Solaris 2.8 server as
proved with a small test program. Other forms of fcntl (ie F_SETLK) are
OK.
I noticed there are
2007 Sep 24
2
Q: how to collect user/group-names
Hi
Sorry if it's not 100% appropriate for this list, cannot think of better
place to find people with lots of know-how from Unix and Windows.
I'm currently working on replacing EMC's Celerra file servers by Linux/Samba.
The SID to UID/GID mapping table on Celerra is very large, ~50'000 entries
and I don't want to pollute my LDAP server with all this (using winbind with
LDAP
2008 May 14
0
Using O_EXCL flag on /dev/zvol nodes
The /dev/[r]dsk nodes implement the O_EXCL flag. If a node is opened using the O_EXCL, subsequent open(2) to that node fail. But I dont think the same is true for /dev/zvol/[r]dsk nodes. Is that a bug (or maybe RFE) ?
Thanks
Sumit
--
This messages posted from opensolaris.org
2005 Aug 25
2
Something other than dotlock for uidlist locking?
If I read the code correctly, only dotlocks are supported for locking
of dovecot-uidlist. And I don't see any settings in the config file
for it.
As it turns out, dotlocks are very slow on my system, due to their
implementation via hardlinks.
Would it be possible to support other locking mechanisms for locking
of the uidlist file?
-jdb
2007 Oct 25
2
Question: backslash in file name
Hi
I have a applikation (Oracle DB) which writes files with a backslash in names, i.e:
Log\GEN_INPUT_BASED_2899.csv
not a problem for Unix but Samba present it to Windows users as:
L2CYOP~L.CSV
Is there any way _in Samba_ to strip this 'Log\' and give back to user the GEN_INPUT_BASED_2899.csv part.
Tha appliance (EMC Celerra) I've just migrated data from, was magicaly doing this.
2013 Mar 21
4
[PATCH] btrfs-progs: make btrfs dev scan multi path aware
We should avoid using non multi-path (mp) path for mp disks
As of now there is no good way (like api) to check that.
A workaround way is to check if the O_EXCL open is unsuccessful.
This is safe since otherwise the BTRFS_IOC_SCAN_DEV ioctl would
fail if the disk-path can not be opened with the flag O_EXCL set.
This patch also includes some (error) print format changes related
to the btrfs
2020 Jan 20
2
Stale pid file problem, and a proposed solution
Today, rsyncd manages its pid file by open()ing it with O_CREAT|O_EXCL
at startup, and then unlink()ing it at shutdown. If the open() fails
at startup because the file already exists, then rsyncd will assume
another instance of itself is already running and not start.
However, there's a problem with this approach: if rsyncd is terminated
without being able to clean up (e.g., kill -9, or the
2009 Jul 24
3
High Availability strategies
Hi,
we have a medium setup (8000 pop and imap users using almost every
available client, 800GB of stored mails using maildir on a Celerra NFS
server, with index files on local disks, and procmail for local
delivery), being served by a Dell PowerEdge 2850 (2GB RAM and dual P4
Xeon 3,2GHz).
Our current not-so-high availability setup is based on a similar
server with the same setup and a easy
2001 Nov 13
2
direct write patch
I have attached a patch that supports a new "--direct-write" option.
The result of using this option is to write directly to the destination
files, instead of a temporary file first.
The reason this patch is needed is for rsyncing to a device where the
device is full or nearly full.
Say that I am writing to a device that has 1 Meg free, and a 2 meg file
on that device is out of date.
2001 Nov 29
1
cannot create .hosts.b0WX1x : File exists
Hello,
when I do:
/opt/rsync/bin/rsync /etc/hosts targethost::bkp/
I get:
cannot create .hosts.b0WX1x : File exists
I check the targethost and I get empty file .hosts.b0WX1x
When trying with other targethost-s it works, but on this one it doesn't.
On the other targethosts I have exactly the same LinuX distribution,
permissions and users than on the problem targethost.
I have exactly the
2003 May 14
1
Bug with Large Files on AIX
Hi,
on AIX, mkstemp doesn't open a file with the O_LARGEFILE option, so you
can't transfer files > 2GB to an AIX machine.
Here is a fix:
diff -c -r rsync-2.5.6.orig/syscall.c rsync-2.5.6/syscall.c
*** rsync-2.5.6.orig/syscall.c Sun Jan 26 21:09:02 2003
--- rsync-2.5.6/syscall.c Wed May 14 13:55:15 2003
***************
*** 151,157 ****
if (dry_run) return -1;
if
2005 Aug 16
1
question about EMC filer to join SAMBA domain
Hi
I'm sorry if this question has been asked and answered. Does anyone know
that EMC Celerra filer can join samba 3 domain? Thanks,
2016 Apr 26
2
poor samba performance with many smaller files
Hi,
I need to to open existing readonly files. Yes you are right, not the open
call takes the time, but stat() system call.
I looked at aio_pthread source, the lines which needs to be removed to make
it work are just the lines which tests for O_CREAT|O_EXCL? What problems
can cause such solution for readonly share?
On Tue, Apr 26, 2016 at 8:42 PM, Jeremy Allison <jra at samba.org> wrote:
2009 Jun 10
1
Weird behavior in receive_data function
Dear List,
I'm trying to get diff/removed data and it's offset out. So I write a
functions in receive_data. When I run backup, I found there is a weird
behavior which I don't understand.
i = recv_token(f_in, &data) will receive (i = -1, offset2 = 0) some
where in the middle of the transfer procedure. That's to say, it's going
to transfer the first data block from sender,
2012 Jun 20
2
dovecot 2.1.5 performance
Hello,
I'm migrating from 1.1.16 running in 4 debian lenny servers virtualized
with xenserver and 1 core and 5GB of RAM to 2.1.5 running in 4 ubuntu
12.04 servers with 6 cpu cores and 16GB of RAM virtualized with VMWare,
but I'm having lots a performance problems. I don't think that
virtualization platform could be the problem, because the new servers
running in xenserver has
2006 Jan 26
1
Creating a machine account manually (EMC, Samba PDC)
Greetings,
I am trying to join a EMC Celerra NS502 CIFS server to our Samba
3.0.21a domain controller. According to EMC, I was told that we need to
manually create the machine account first. How is the best way to do this?
We are using an openLDAP backend, using the idealx scripts. Joining a
windows machine from the computer properties dialog of that machine works
perfectly.
Things I have
2007 Jan 05
3
1.0.rc16 released
http://dovecot.org/releases/dovecot-1.0.rc16.tar.gz
http://dovecot.org/releases/dovecot-1.0.rc16.tar.gz.sig
If you've had problems with getting errors about index files
sometimes being corrupted, please try if this release fixes it. If
you've reported any bugs that this release hasn't fixed, please
report them again so I know they still didn't get fixed and that I
2007 Jan 05
3
1.0.rc16 released
http://dovecot.org/releases/dovecot-1.0.rc16.tar.gz
http://dovecot.org/releases/dovecot-1.0.rc16.tar.gz.sig
If you've had problems with getting errors about index files
sometimes being corrupted, please try if this release fixes it. If
you've reported any bugs that this release hasn't fixed, please
report them again so I know they still didn't get fixed and that I
2013 Jun 05
2
dovecot and time
I found something interesting via strace. lda is writing a timestamp
with utime before doign the fsync, but I'm really not a C guy, so I
have no idea why that's going on via procmail and not via commandline.
I assume it's related to the choice of pread64 vs read.
when called from commandline (working):
read(0, "July 14-20, 2013\n10 courses. Bon"..., 4096) = 4096