View previous topic :: View next topic |
Author |
Message |
Saundersx Apprentice
Joined: 11 Apr 2005 Posts: 294
|
Posted: Sun Jul 23, 2006 11:23 am Post subject: Samba freakout |
|
|
I would consider this a freakout as it overwrites the file being edited with nothing.
Heres how to recreate it every time.
start samba like this; smbd -i -S -d 3
and run this on the file being opened on the same machine; watch -n 1 "cat openfile"
then open the file in notepad or whatever through samba and try saving it. the following below happens every time
Code: |
...snip...
creating new dirptr 256 for path ./, expect_close = 1
Transaction 9 of length 102
switch message SMBntcreateX (pid 20320) conn 0x8038f578
unix_mode(openfile) returning 0644
root opened file openfile read=Yes write=No (numopen=1)
linux_set_kernel_oplock: got kernel oplock on file openfile, dev = 306, inode = 117985, file_id = 1
Transaction 10 of length 76
switch message SMBtrans2 (pid 20320) conn 0x8038f578
call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1006
call_trans2qfilepathinfo openfile (fnum = 10912) level=1006 call=7 total_data=0
Transaction 11 of length 74
switch message SMBtrans2 (pid 20320) conn 0x8038f578
call_trans2qfsinfo: level = 258
Transaction 12 of length 63
switch message SMBreadX (pid 20320) conn 0x8038f578
send_file_readX fnum=10912 max=71 nread=71
I/O possible |
The resulting file is completly blank, but strangly the same size as what is being saved...
Here is my smb.conf with folders taken out
[/profile]
Code: | [global]
; network-related
workgroup = Workgroup
wins support = no
disable netbios = yes
lm announce = no
os level = 0
;wins server = 192.168.0.2
domain logons = no
domain master = no
local master = no
preferred master = no
name resolve order = wins
remote announce =
dns proxy = no
;unix charset = iso8859-15
;dos charset = cp850
; security-related
security = user
bind interfaces only = yes
;interfaces = eth1 eth1:0 127.0.0.1
interfaces = eth2:1 127.0.0.1
;socket address = 192.168.0.3
hosts allow = hedgehog xbox
hosts deny = 0.0.0.0/0
;valid users = root
create mask = 0644
;directory mask = 0755
directory mask = 0777
;directory security mask = 0777
directory security mask = 0000
;deadtime = 15
encrypt passwords = yes
guest ok = no
; case sensitivity
;;mangle case = no
case sensitive = no
default case = lower
preserve case = yes
short preserve case = no
; printing-related
disable spoolss = yes
printable = no
load printers = no
; nicities
dont descend = /proc,/dev
follow symlinks = yes
hide dot files = no
; performance
log level = 0
;;read size = yes
write raw = yes
getwd cache = yes
wide links = yes
oplocks = yes
fake oplocks = no
level2 oplocks = yes
kernel oplocks = yes
max xmit = 65535
read raw = yes
write cache size = 65536
;large readwrite = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 SO_KEEPALIVE
; debugging
syslog = 0
;log file = /var/log/samba/smb.log
; for use with lufs (ftpfs)
;use sendfile = no
|
I recompiled samba but it has the same effect (Version 3.0.22). I have a strange feeling after searching the forums this only affects me, and is probibly my fault somehow... |
|
Back to top |
|
|
exklusve Apprentice
Joined: 23 Aug 2002 Posts: 270 Location: currently ~/
|
Posted: Mon Jul 24, 2006 11:32 pm Post subject: |
|
|
Quote: | start samba like this; smbd -i -S -d 3 |
Why do you start samba like that instead of using the init.d scripts? _________________ eXklusve
You do know that no one gives a shit about your system spec's right? |
|
Back to top |
|
|
Saundersx Apprentice
Joined: 11 Apr 2005 Posts: 294
|
Posted: Tue Jul 25, 2006 4:40 am Post subject: |
|
|
Yes, same results for both. |
|
Back to top |
|
|
|