problems in locking.tdb after update to samba 2.2.8a
Hansjoerg Maurer
Hansjoerg.Maurer at dlr.de
Tue Aug 19 06:22:32 GMT 2003
Hi,
I have updated to samba 2.2.8.a on redhat 6.2 and now, smbstatus shows
weird output.
I have attached the output of 2 version of smbstatus (2.2.2 and 2.2.8a)
The output of 2.2.2 ist ok, 2.2.8a shows wrong output.
I stopped samba, deleted the locking.tdb files, but that doesn't help
I have attached an strace (only the last 20 lines) of smbstatus from
2.2.2 (old.trc) and
2.2.8a (new.trc)
in the old working version, there is an additional lseek
lseek(6, 40, SEEK_SET) = 40
write(6, "\0\0\0\0", 4) = -1 EBADF (Bad file descriptor)
But I have no idea, if it helps
Greetings
Hansjörg
[root at server bin]# 2.2.2/smbstatus.old -L
INFO: Debug class all level = 2 (pid 13847 from pid 13847)
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[Projekt]"
Processing section "[A-Projekt]"
Processing section "[E-Projekt]"
Processing section "[CAD]"
Processing section "[Profiles]"
Processing section "[print$]"
Processing section "[printers]"
Locked files:
Pid DenyMode R/W Oplock Name
--------------------------------------------------
6552 DENY_WRITE RDWR NONE
/home/projekt/47feldk/6-werkp/80-Doku/47w-eg-E.dwg Tue Aug 19 08:10:45
2003
9249 DENY_NONE RDONLY EXCLUSIVE+BATCH
/home/projekt/desktop.ini Tue Aug 19 08:11:37 2003
9249 DENY_NONE RDONLY EXCLUSIVE+BATCH
/home/a-projekt/desktop.ini Tue Aug 19 08:11:37 2003
[root at server bin]# ./smbstatus -L
Locked files:
Pid DenyMode Access R/W Oplock Name
--------------------------------------------------------------
1836017711 0x37342f74 NONE w-eg-E.dwg Tue May 23
09:04:06 2023
1836017711 0x65642f74 NONE Hm'@-E.dwg Tue Apr 3
10:50:59 2029
1836017711 DENY_FCB 0x2f746b65 RDONLY EXCLUSIVE
Hm'@-E.dwg Mon Feb 15 21:51:48 2027
[root at server bin]# tail -20 old.trc
stat("/usr/local/samba/var/locks", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/local/samba/var/locks/locking.tdb", O_RDONLY) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
brk(0x80b1000) = 0x80b1000
old_mmap(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x40279000
lseek(6, 40, SEEK_SET) = 40
write(6, "\0\0\0\0", 4) = -1 EBADF (Bad file descriptor)
write(1, "Locked files:\n", 14) = 14
write(1, "Pid DenyMode R/W Opl"..., 51) = 51
write(1, "--------------------------------"..., 51) = 51
write(1, "13852 DENY_WRITE RDWR NON"..., 123) = 123
write(1, "6552 DENY_WRITE RDWR NON"..., 116) = 116
write(1, "\n", 1) = 1
munmap(0x40278000, 696) = 0
close(5) = 0
munmap(0x40279000, 8192) = 0
close(6) = 0
munmap(0x40277000, 4096) = 0
_exit(0) = ?
[root at server bin]# tail -20 new.trc
fstat(5, {st_mode=S_IFREG|0644, st_size=696, ...}) = 0
old_mmap(NULL, 696, PROT_READ, MAP_SHARED, 5, 0) = 0x4027e000
stat("/usr/local/samba/var/locks", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/local/samba/var/locks/locking.tdb", O_RDONLY) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
brk(0x80a9000) = 0x80a9000
old_mmap(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x4027f000
write(1, "Locked files:\n", 14) = 14
write(1, "Pid DenyMode Access R/"..., 63) = 63
write(1, "--------------------------------"..., 63) = 63
write(1, "1836017711 0x35352f74 NONE "..., 78) = 78
write(1, "1836017711 0x37342f74 NONE "..., 71) = 71
write(1, "\n", 1) = 1
munmap(0x4027e000, 696) = 0
close(5) = 0
munmap(0x4027f000, 8192) = 0
close(6) = 0
munmap(0x4027d000, 4096) = 0
_exit(0) = ?
--
_________________________________________________________________
Dr. Hansjoerg Maurer | LAN- & System-Manager
|
Deutsches Zentrum | DLR Oberpfaffenhofen
f. Luft- und Raumfahrt e.V. |
Institut f. Robotik |
Postfach 1116 | Muenchner Strasse 20
82230 Wessling | 82234 Wessling
Germany |
|
Tel: 08153/28-2431 | E-mail: Hansjoerg.Maurer at dlr.de
Fax: 08153/28-1134 | WWW: http://www.robotic.dlr.de/
__________________________________________________________________
More information about the samba-technical
mailing list