> On Fri, May 26, 2006 at 11:10:32AM +0200, Kern Sibbald wrote: >> I've taken a look at this patch, and may add it to Bacula, but the patch >> is not really the correct way to solve the problem. > > That was what I thought. That is what worked for me and what I thought > could be useful for Bacula developers to develop the right solution. > >> When labeling a >> Volume for the first time, Bacula writes a pre-label, which means the >> name >> of the Volume is there, but not all the other information needed for the >> label. > > What is the other information?
Well, first, the label is a PRE_LABEL rather than a real label. This means in principle that the Volume is new and has no data on it. If Bacula were ever to strictly check this condition, you would be out of luck. Apparently it does not check. Also, there is information on the system, time/data, ... in the label. Dump one and you will see. More importantly, the catalog entry is properly initialized, whereas it may not have been properly setup during the pre-label. What I don't understand is why your Volumes are pre-labeled. This information should be written to the working directory and then transferred to the volume only after the label has been rewritten and the first real data has been written. > >> Apparently this is what is failing in the CD writing, and you have >> simply >> bypassed this step. >> >> Now, the patch may seem to work, but in fact, you are then left with a >> Volume that is not correctly labeled, and I am not 100% certain what >> kinds >> of problems, if any, will occur later. > > Both backup and restore seems to work for me now. That is all I need > now, but it would be great to see the problem solved right in Bacula > sources. As you probably saw, I posted a patch that works much like yours (a bit of a kludge), but it first attempts to get the device in read/write mode, and if it succeeds, it continues in the correct manner. If it fails, it does not rewrite the Volume label but does set the catalog entry correctly. > > Greets, > Jacek > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > Best regards, Kern _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users