Re: [Samba] samba file locking

2010-03-15 Thread Janez Kosmrlj
On Mon, Mar 15, 2010 at 6:52 AM, Janez Kosmrlj postnali...@googlemail.comwrote: Hi, I tried your configuration. Everything works, as long as i test with text files. But when i tried with the java application i just get a lot of the folowing errors: *mmap failed for CEN and END part of zip

Re: [Samba] samba file locking

2010-03-08 Thread Janez Kosmrlj
On Mon, Mar 1, 2010 at 4:03 PM, Janez Kosmrlj postnali...@googlemail.comwrote: On Mon, Feb 22, 2010 at 10:18 AM, Janez Kosmrlj postnali...@googlemail.com wrote: On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj postnali...@googlemail.com wrote: On Fri, Feb 19, 2010 at 9:23 PM, Ernesto

Re: [Samba] samba file locking

2010-03-08 Thread Volker Lendecke
On Mon, Mar 08, 2010 at 01:42:16PM +0100, Janez Kosmrlj wrote: update. For now it looks like fakeoplocks=yes in smb.conf is the solution. Also the audit service on the client has to be turned off. We have to do some further testing, but this looks like it is it for now. NEVER use fake

Re: [Samba] samba file locking

2010-03-01 Thread Janez Kosmrlj
On Mon, Feb 22, 2010 at 10:18 AM, Janez Kosmrlj postnali...@googlemail.comwrote: On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj postnali...@googlemail.com wrote: On Fri, Feb 19, 2010 at 9:23 PM, Ernesto Silva erniesi...@gmail.comwrote: Can you try to mount with -o directio? Not sure

Re: [Samba] samba file locking

2010-02-22 Thread Janez Kosmrlj
On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj postnali...@googlemail.comwrote: On Fri, Feb 19, 2010 at 9:23 PM, Ernesto Silva erniesi...@gmail.comwrote: Can you try to mount with -o directio? Not sure this will help, but it might be worth a try. Volker Hi, there is also another

Re: [Samba] samba file locking

2010-02-19 Thread Volker Lendecke
On Fri, Feb 19, 2010 at 07:33:48AM +0100, Janez Kosmrlj wrote: We have a strange file locking problem and i hope someone can help. We use some CentOS 5 servers, which use samba 3.0.33, to share files of a java application to clients. Clients are mostly CentOS 5 (same version as the server),

Re: [Samba] samba file locking

2010-02-19 Thread Ernesto Silva
Can you try to mount with -o directio? Not sure this will help, but it might be worth a try. Volker Hi, there is also another parameter similar to directio, I don't know the difference but seems more radical, it's forcedirectio. I have been using it on linux clients which mounts a samba

[Samba] samba file locking

2010-02-18 Thread Janez Kosmrlj
Hi samba experts, We have a strange file locking problem and i hope someone can help. We use some CentOS 5 servers, which use samba 3.0.33, to share files of a java application to clients. Clients are mostly CentOS 5 (same version as the server), but there are a few legacy windows clients (the

[Samba] samba file locking

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

Re: [Samba] samba file locking

2009-10-05 Thread Jeremy Allison
On Mon, Oct 05, 2009 at 11:43:52AM +0200, Janez Kosmrlj wrote: Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But

[Samba] samba file locking

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

[Samba] samba file locking

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

[Samba] samba file locking problem

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

[Samba] samba file locking problem

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

[Samba] samba file locking problem

2009-10-05 Thread Janez Kosmrlj
Hi, I encountered an interesting problem. We have a Java application on a samba server. The folder is then shared to the clients via a samba share. So far it works OK. Until now we had windows clients and everything worked OK. But now we are trying to migrate to Linux clients and this is where the

[Samba] Samba File locking details

2004-11-27 Thread Billy Newport
Information on this seems sketchy. I have samba 2.2 on RHEL 2.1. I have two clients (written in Java using a 1.4.2 JDK). The clients try to lock the same file with an exclusive lock. Both clients always succeed, i.e. locking doesn't seem to work. I have oplocks turned off on the share and

Re: [Samba] Samba File Locking Problem

2004-03-27 Thread George Lancina
This may be what you need in your smb.conf: oplocks = no level 2 oplocks = no Look them up via 'man smb.conf'. I believe you can set it either globally or per share. Hope that helps :-) Cameron B. Prince said: Hi, I have a situation in the office where I temporarily need to provide

[Samba] Samba File Locking Problem

2004-03-25 Thread Cameron B. Prince
Hi, I have a situation in the office where I temporarily need to provide additional clients access to a share on a Windows 2000 Professional box. 2000 Pro seems to only allow 5 clients to connect to a share and there is no faclity to allow more as best I can tell. Upgrading isn't really an option

Re: [Samba] Samba File Locking Problem

2004-03-25 Thread Radio Gong 2000 GmbH Co. KG [Technik]
I don't know what kind of programm you're running, but I had nearly the problem. I solved it by turning of the oplocks for this share. Try in the share: [C] comment = C On Doveserver path = /mnt/samba public = yes writable = yes create mask = 0775

RE: [Samba] Samba File Locking Problem

2004-03-25 Thread Cameron B. Prince
Hi Sascha, You nailed it... My problem is solved. I don't understand why that would be desired behavior, but regardless, it's fixed now. Thank you very much, Cameron I don't know what kind of programm you're running, but I had nearly the problem. I solved it by turning of the oplocks for

[Samba] Samba file locking

2003-07-01 Thread Simon
Hi, I have DOS program and I have to move it from Novell to Samba server. In Novell program locks file all but DENY READ : 0 so that other clients can read file and if one client is reading file, other can write to it. I would like achive same affect on samba server, but on samba server program