>>>>> On Tue, 16 Aug 2005 23:14:00 +0200, Kern Sibbald <[EMAIL PROTECTED]> said:
Kern> On Tuesday 16 August 2005 18:37, Martin Simmons wrote: >> >>>>> On Tue, 16 Aug 2005 14:54:59 +0200, Kern Sibbald <[EMAIL PROTECTED]> >> >>>>> said: >> Kern> On Tuesday 16 August 2005 12:22, Michael Riexinger wrote: >> >> Hi, >> >> >> >> I backup serveral win2003 Servers with vss. This works without >> >> problems, >> Kern> This is good news. >> >> >> but sometimes i get this error: >> >> >> >> Warning: Generate VSS snapshots failed. ERR=Overlapped I/O operation >> >> is in progress. >> >> >> >> And then bacula can't backup open files. How can this be avoided? >> Kern> It is perhaps not very helpful, but I'd say complain to Microsoft. >> >> This probably isn't the issue here, but you need to be sure that the error >> code isn't lost between the use of b_errno_win32 and the call to >> GetLastError() in berrno::strerror(). >> >> In particular, when you do something like >> >> Jmsg(jcr, M_WARNING, 0, _("Generate VSS snapshots failed. ERR=%s\n"), >> be.strerror()); >> >> what if the _("...") form has to do file operations? Kern> You will need to point me to the specific code (file:line), but Kern> berrno be; Kern> captures errno. So errno can be destroyed after that point and be.strerror() Kern> will continue to produce correct results. Ah, of course I didn't see that because the code is in the header file...lovely C++ :-(. Kern> For Win32 that may not be strictly Kern> correct as there is no errno, so GetLastError() is used. As long as there is Kern> not a second error in between time, there should be no problem (at least that Kern> is the theory). Perhaps it would be better if the Win32 berrno constructor called GetLastError() instead of delaying it until strerror? __Martin ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users