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 the
> > >>>>>>>> client at c:\temp\bacula. All files a restored but I get lots of
> >>>>>>>> messages complaining about errors changing the file permissions,
> > e.g.:
> >>>>>>>> 05-Apr 16:12 hisservld-fd: RestoreFiles.2007-04-05_16.10.57 Warning:
> >>>>>>>> Cannot change permissions of C:/temp/bacula/C/Dokumente und
> >>>>>>>> Einstellungen/Administrator/StartmenÃ/Programme/Autostart: ERR=No
such
> >>>>>>>> file or directory
> >
> > > Are you running with VSS enabled?
> >
> > Perhaps there is a bug with VSS turned off changing permissions on files where
> > the filename is not translated to Unicode -- setting file permissions is
> > something that rarely happens since I think everyone uses VSS where that
> > function is not used.
>
> Yes I think I use VSS:
>
> FileSet {
> Name = "HISserver Files"
> Include {
> File = "C:/"
> }
> Enable VSS = yes
> }
I think that this is something that Robert will need to look at. In any case,
it is probably not too serious since it is a Warning message and not an Error
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
if (chmod(..)) {
Jmsg(... Cannot change permissions ...);
}
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?
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
Software is harder than hardware so better get it right the first time.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users