Samba can't find file, NT can
Mike Bird
mgb at yosemite.net
Wed Nov 21 19:41:02 GMT 2001
We're having a problem with an application called Grade Machine
running on Windows 98 workstations. The problem occurs when
trying to save when overwriting the currently open class file.
It works on NT 3.51, it works on the local drive, it works
on Samba when short directory names are used, it doesn't
work under Samba 2.0.10 or 2.2.2 when saving to a file in
a folder such as "My Documents". We've tried with and without
oplocks. Samba 2.2.2 is running under Linux 2.4.9, while
Samba 2.0.10 is running under Linux 2.4.2.
I've tried to reproduce the problem using SMBCLIENT, without
success.
The configuration uses Samba's default case conventions:
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
An ethereal packet trace of the file save indicates that
at some point, the application believes the class file is
no longer present and so tries to create a new file of that
name instead of writing to a temp file and renaming. The
full trace of the save operation runs to 150 pages but this
seems to be where the failure occurs. The client asks for
a valid filename (although capitalisation is different under
Linux) and receives a garbage answer.
If some Samba guru wants to tackle this, we'll attempt to
provide whatever additional information you need.
--Mike
Frame 25 (163 on wire, 163 captured)
Ethernet II
Internet Protocol
Transmission Control Protocol, Src Port: 1274 (1274), Dst Port: netbios-ssn
(139), Seq: 174926334, Ack: 1693079406
NetBIOS Session Service
Message Type: Session message
Flags: 0x00
.... ...0 = Add 0 to length
Length: 105
SMB (Server Message Block Protocol)
Message Type: 0xFF
Server Component: SMB
SMB Command: SMBtrans2 (0x32)
Error Class: Success
Reserved: 0
Error Code: No Error
Flags: 0x00
.... ...0 = Lock&Read, Write&Unlock not supported
.... ..0. = Receive buffer not posted
.... 0... = Path names case sensitive
...0 .... = Pathnames not canonicalized
..0. .... = OpLocks not requested/granted
.0.. .... = Notify open only
0... .... = Request to server
Flags2: 0x0001
.... .... .... ...1 = Long file names supported
.... .... .... ..0. = Extended attributes not supported
.... .... .... .0.. = Security signatures not supported
.... 0... .... .... = Extended security negotiation not supported
...0 .... .... .... = Don't resolve pathnames with DFS
..0. .... .... .... = Don't permit reads if execute-only
.0.. .... .... .... = Error codes are DOS error codes
0... .... .... .... = Strings are ASCII
Reserved: 6 WORDS
Network Path/Tree ID (TID): 1 (0001)
Process ID (PID): 5597 (15dd)
User ID (UID): 100 (0064)
Multiplex ID (MID): 57987 (e283)
Word Count (WCT): 15
Total Parameter Count: 39
Total Data Count: 0
Max Parameter Count: 10
Max Data Count: 2432
Max Setup Count: 0
Reserved1: 0
Flags: 0x00
.... .... .... ...0 = Dont disconnect TID
.... .... .... ..0. = Two way transaction
Timeout: 0
Reserved2: 0
Parameter Count: 39
Parameter Offset: 66
Data Count: 0
Data Offset: 0
Setup Count: 1
Reserved3: 0
Setup1: 1
Byte Count (BCC): 40
Transact Name: TRANS2_FIND_FIRST2
Pad1: \000
Parameters: \026\000\006\000\000\000\004\001\000\000\000\000\MY
DOCUMENTS\TESTING2.CLS\000
Frame 26 (234 on wire, 234 captured)
Time delta from previous packet: 0.061155 seconds
Ethernet II
Internet Protocol
Transmission Control Protocol, Src Port: netbios-ssn (139), Dst Port: 1274
(1274), Seq: 1693079406, Ack: 174926443
NetBIOS Session Service
Message Type: Session message
Flags: 0x00
.... ...0 = Add 0 to length
Length: 176
SMB (Server Message Block Protocol)
Message Type: 0xFF
Server Component: SMB
SMB Command: SMBtrans2 (0x32)
Error Class: Success
Reserved: 0
Error Code: No Error
Flags: 0x80
.... ...0 = Lock&Read, Write&Unlock not supported
.... ..0. = Receive buffer not posted
.... 0... = Path names case sensitive
...0 .... = Pathnames not canonicalized
..0. .... = OpLocks not requested/granted
.0.. .... = Notify open only
1... .... = Response to client/redirector
Flags2: 0x0041
.... .... .... ...1 = Long file names supported
.... .... .... ..0. = Extended attributes not supported
.... .... .... .0.. = Security signatures not supported
.... 0... .... .... = Extended security negotiation not supported
...0 .... .... .... = Don't resolve pathnames with DFS
..0. .... .... .... = Don't permit reads if execute-only
.0.. .... .... .... = Error codes are DOS error codes
0... .... .... .... = Strings are ASCII
Reserved: 6 WORDS
Network Path/Tree ID (TID): 1 (0001)
Process ID (PID): 5597 (15dd)
User ID (UID): 100 (0064)
Multiplex ID (MID): 57987 (e283)
Word Count (WCT): 10
Total Parameter Count: 10
Total Data Count: 108
Reserved2: 0
Parameter Count: 10
Parameter Offset: 56
Parameter Displacement: 0
Data Count: 108
Data Offset: 68
Data Displacement: 0
Setup Count: 0
Reserved3: 0
Byte Count (BCC): 121
Pad1: \000
Parameter: \000\001\001\000\001\000\000\000\000\000
Pad2: \000\000
Data:
l\000\000\000\000\000\000\000\2003¯¶£pÁ\001\200t5\222\000qÁ\001\000@øÇ£pÁ\00
1\000@øÇ£pÁ\001ºF\000\000\000\000\000\000ºF\000\000\000\000\000\000
\000\000\000\f\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
00\000\000\00
More information about the samba
mailing list