[Samba] cannot access files after update samba 3.0.5 -> 3.0.6 (Redhat 6.2)

Wolfgang Kretzschmar Wolfgang.Kretzschmar at abas.de
Mon Aug 30 10:21:26 GMT 2004


Redhat 6.2
kernel 2.2.14-12
Samba 3.0.6
compiled with ./configure --prefix=/usr/local/samba --localstatedir=/var/log/samba --with-lockdir=/var/lock/samba --with-privatedir=/etc/rc-abas.d --with-configdir=/etc/rc-abas.d --enable-debug


I can list directories and write files on a samba share but cannot read files. This happens with Windows XP client or smbclient. After downgrading to 3.0.5 samba works fine again.

It seems to be a Redhat 6.2 problem. On a second computer with Redhat 9 this problem does not occur.

This line is written in log.smbd:

[2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122)
   send_file_readX: sendfile failed for file wk/xx (Das Argument ist ungültig). Terminating

("Das Argument ist ungültig" --> "invalid argument")

and this with debug level 10:

...
[2004/08/27 18:29:01, 3] smbd/process.c:switch_message(887)
   switch message SMBreadX (pid 15427) conn 0x833b760
[2004/08/27 18:29:01, 4] smbd/uid.c:change_to_user(193)
   change_to_user: Skipping user change - already user
[2004/08/27 18:29:01, 10] locking/locking.c:is_locked(89)
   is_locked: brl start=0 len=16384 unlocked for file wk/xx
[2004/08/27 18:29:01, 10] locking/posix.c:is_posix_locked(697)
   is_posix_locked: File wk/xx, offset = 0, count = 16384, type = READ
[2004/08/27 18:29:01, 10] locking/posix.c:posix_lock_in_range(633)
   posix_lock_in_range: offset_out = 0, count_out = 16384
[2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(650)
   posix_fcntl_lock 25 5 0 16384 0
[2004/08/27 18:29:01, 8] lib/util.c:fcntl_lock(1646)
   fcntl_lock 25 5 0 16384 0
[2004/08/27 18:29:01, 8] locking/posix.c:posix_fcntl_lock(680)
   posix_fcntl_lock: Lock call failed
[2004/08/27 18:29:01, 10] locking/locking.c:is_locked(101)
   is_locked: posix start=0 len=16384 unlocked for file wk/xx
[2004/08/27 18:29:01, 0] smbd/reply.c:send_file_readX(2122)
   send_file_readX: sendfile failed for file wk/xx (Das Argument ist ungültig). Terminating
...

but the file really is not locked by anyone else.

The share is on a local harddisk. This is not a NFS re-export problem.

Looks as if configure thinks that Redhat 6.2 supports some kind of locking but it does not.

Regards

Wolfgang Kretzschmar
ABAS Software AG
Karsruhe, Germany






More information about the samba mailing list