Cifs Locking problem

Hans van der Meyden hans at vanmeyden.co.uk
Sat Oct 6 11:58:17 GMT 2007


I have switched operating system from Whitebox 4 to Fedora.

Under Whitebox we used smbfs to mount an nt file system.

We have the following code in our program

lseek(fd,0,0);
lock(fd,2,1024)
lseek(fd,0,0)
read(fd,rbuf,1024)
lseek(fd,0,0)
write(fd,rbuf,1024)      (This write gives the error message ......locked)
lseek(fd,0,0)
lock(fd,0,1024)   

When using cifs and the mount command the program locks on the write command.
When using the old version of samba the program works ok.

Other Linux mounts also work ok, only the NT files system does not work

Hans



More information about the samba-technical mailing list