backup PC client

Jan Kratochvil short at ucw.cz
Fri Dec 11 15:38:20 GMT 1998


> I began with Samba 1.9.18.p10. on SunOs 5.6. I try backup PC(Windows95)
> with this:
> smbclient \\\\pcbig\\test
[snipped]
> 
> But restore has error:
> smb:\> tar x /dev/rmt/0
> smb:\> restore tar file \test1.txt of size 70 bytes
> smb:\> Updating creation date on \testfolder1\
> smb:\> ERRDOS - 50 setting attributes on file \\testfolder1\
> smb:\> Could not set time on file : \\testfolder1\
> ..
> 
> Oto Ronckevic
> Social INSURANCE, branch office, Slovakia
> Oto.Ronckevic at socpoist.sk

  I don't know how to set the creation time on directory through SMB, please
some ppl with more knowledge look into the attached tcpdump outputs.
Each of them tries to set time on "\b\b" directory.
  Attached diff file removes the setting from smbclient so the TAR restoring
works (although the directory times are of course not set).



						Lace
-------------- next part --------------
--- source/clitar.c-orig	Fri Dec 11 16:22:30 1998
+++ source/clitar.c	Fri Dec 11 16:23:11 1998
@@ -1883,7 +1883,7 @@
 
 		  DEBUG(0, ("Updating creation date on %s\n", finfo.name));
 
-		  if (!do_setrtime(finfo.name, finfo.mtime)) {
+		  if (0 && !do_setrtime(finfo.name, finfo.mtime)) {
 
                     DEBUG(0, ("Could not set time on file: %s\n", finfo.name));
                     return;
-------------- next part --------------
16:29:17.602684 LINUX-MACHINE.1519 > WIN98CZ-MACHINE.netbios-ssn: P 44:107(63) ack 40 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=59

SMB PACKET: SMBsetatr (REQUEST)
SMB Command   =  0x9
Error class   =  0x0
Error code    =  0
Flags1        =  0x8
Flags2        =  0x1
Tree ID       =  55296
Proc ID       =  25044
UID           =  0
MID           =  25144
Word Count    =  8
smbvwv[]=
Attribute=
Time=Sun Jan 22 06:51:28 2006
Res=(0x0,0x0,0x0,0x0,0x0)
smbbuf[]=
Path=\\B\
Data: (2 bytes)
[000] 04 00                                             .. 


 (DF) [tos 0x10]
16:29:17.602921 WIN98CZ-MACHINE.netbios-ssn > LINUX-MACHINE.1519: P 40:79(39) ack 107 win 8213
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=35

SMB PACKET: SMBsetatr (REPLY)
SMB Command   =  0x9
Error class   =  0x1
Error code    =  50
Flags1        =  0x88
Flags2        =  0x1
Tree ID       =  55296
Proc ID       =  25044
UID           =  0
MID           =  25144
Word Count    =  0
SMBError = ERRDOS - 50
smb_bcc=0


 (DF)
16:29:17.614959 LINUX-MACHINE.1519 > WIN98CZ-MACHINE.netbios-ssn: . ack 79 win 32120 (DF) [tos 0x10]
-------------- next part --------------
16:25:50.490985 LINUX-MACHINE.1517 > WIN98CZ-MACHINE.netbios-ssn: P 45:155(110) ack 60 win 32120
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=106

SMB PACKET: SMBtrans2 (REQUEST)
SMB Command   =  0x32
Error class   =  0x0
Error code    =  0
Flags1        =  0x8
Flags2        =  0x3
Tree ID       =  51201
Proc ID       =  1
UID           =  0
MID           =  1
Word Count    =  15
TRANSACT2_SETPATHINFO param_length=11 data_length=26
TotParam=11
TotData=26
MaxParam=4079
MaxData=4079
MaxSetup=0
Flags=0x0
TimeOut=0
Res1=0x0
ParamCnt=11
ParamOff=68
DataCnt=26
DataOff=80
SetupCnt=1
TransactionName=
Paramaters=
Data: (11 bytes)
[000] 01 00 00 00 00 00 5C 62  5C 62 00                 ......\b \b.
Data=
Data: (26 bytes)
[000] 00 00 00 00 8B 25 39 7B  8B 25 39 7B 00 00 00 00  .....%9{ .%9{....
[010] 00 00 00 00 00 00 00 00  00 00                    ........ ..


 (DF) [tos 0x10]
16:25:50.491273 WIN98CZ-MACHINE.netbios-ssn > LINUX-MACHINE.1517: P 60:99(39) ack 155 win 8760
>>> NBT Packet
NBT Session Packet
Flags=0x0
Length=35

SMB PACKET: SMBtrans2 (REPLY)
SMB Command   =  0x32
Error class   =  0x1
Error code    =  50
Flags1        =  0x88
Flags2        =  0x3
Tree ID       =  51201
Proc ID       =  1
UID           =  0
MID           =  1
Word Count    =  0
SMBError = ERRDOS - 50
TRANSACT2_SETPATHINFO param_length=4079 data_length=0
Trans2Interim


 (DF)
16:25:50.505992 LINUX-MACHINE.1517 > WIN98CZ-MACHINE.netbios-ssn: . ack 99 win 32120 (DF) [tos 0x10]


More information about the samba mailing list