From: Bjoern A. Z. <bze...@li...> - 2007-09-19 21:10:07
|
The orinignal thread was on users but as pointed out by Kern Sibbald I should have replied on devel@. So here we go... ---------- Forwarded message ---------- Date: Fri, 24 Aug 2007 08:38:33 +0000 (UTC) From: Bjoern A. Zeeb <bze...@li...> To: bac...@li... Subject: Re: [Bacula-users] Encoding problems on restore On Fri, 13 Apr 2007 02:02:35 -0700 Kern Sibbald wrote: Hi, sorry for the late reply built I started to evaluate bacula a few days ago and hit the problem discussed in this thread. > On Friday 13 April 2007 10:45, Christoph Litauer wrote: > > Kern Sibbald schrieb: > > >>>>>>>> I did a full dump of hisservld and tried to restore the files = on=20 > the > > > >>>>>>>> client at c:\temp\bacula. All files a restored but I get lot= s of > > >>>>>>>> messages complaining about errors changing the file permission= s, >=20 > > e.g.: > > >>>>>>>> 05-Apr 16:12 hisservld-fd: RestoreFiles.2007-04-05_16.10.57=20 > Warning: > > >>>>>>>> Cannot change permissions of C:/temp/bacula/C/Dokumente und > > >>>>>>>> Einstellungen/Administrator/Startmen=C3/Programme/Autostart: E= RR=3DNo=20 > such > > >>>>>>>> file or directory > > > > > > Are you running with VSS enabled? > > > > Perhaps there is a bu= g=20 > with VSS turned off changing permissions on files where > > the filename = is=20 > not translated to Unicode -- setting file permissions is > > something t= hat=20 > rarely happens since I think everyone uses VSS where that > > function is= not=20 > used. > > > Yes I think I use VSS: > > > FileSet { > > Name =3D "HISserver Files" > > Include { > > File =3D "C:/" > > } > > Enable VSS =3D yes > > } >=20 >=20 > I think that this is something that Robert will need to look at. In any c= ase,=20 > it is probably not too serious since it is a Warning message and not an E= rror=20 > or a Fatal message. Before searching the list archives I had a quick look at the code. The messages seems to be logged from the FD on the windows client (winbacula) according to the name in the log messages. It seems the "Cannot change permissions" messages is only in src/findlib/makepath.c and always within an =09if (chmod(..)) { =09 Jmsg(... Cannot change permissions ...); =09} block. The interesting thing is that for win32 chmod(), to my understanding, should always return(0) so those Jmsg should never be hit. That leads to the question if the win32/compat/compat.cpp:chmod() is used at all? I know Windows had (has but deprecated) chmod and now has _chmod and _wchmod. So the real questions, I guess, are: a) should those chmod() calls in makepath.c do anything on windows or not? b) is there a "VSCPP project" problem picking up the wrong function? --=20 Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time. |