[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-devel
Subject:    Re: [Bacula-devel] [Bacula-users] Encoding problems on restore (fwd)
From:       "Bjoern A. Zeeb" <bzeeb-lists () lists ! zabbadoz ! net>
Date:       2007-09-19 21:09:35
Message-ID: 20070919210700.B58095 () maildrop ! int ! zabbadoz ! net
[Download RAW message or body]

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 <bzeeb-lists@lists.zabbadoz.net>
To: bacula-users@lists.sourceforge.net
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 
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic