From: Tim <obe...@we...> - 2004-05-28 15:27:35
|
Hi! > If you can program C and you understand ACL's as you seem to, adding ACL > support isn't too complicated, and I see the Michael, and Max have > already filled in a good number of things that you need to know. Ok, I'll give my best, although I'm no experinced programmer, yet. The hints from Michael and Max helped me to find out, where to begin. > The one point that I would like to clarify if it wasn't already is that > Bacula streams are simply different data streams written out out backup > time that "identify" the data. This allows any arbitrary data to be > written out with a file with a stream ID and then read back in at > restore time (e.g. file data, file attributes, resource fork data, ACL > data, ...). The ACL depended code is implemented although it's a dirty hack, but I'll work on it. I've added a new stream (15, but only for testing issues). The code for the stream header also seems to be ok, because if some files were backed up and restored, the filed mentioned a data stream 15. But till now the stream itself is empty (it only contains the filenumber etc.), because I was not able to find out how to serialize and send the stream (and of course how to restore the ACLs). > The one aspect of writing streams is that they should be byte order > independent if there is any chance they will be used on multiple > architecture machines -- which is the case with any Linux/Unix data. > Thus writing structures out in binary is not good form, and it must be > written out one item at a time using Bacula "serialization" routines, > which deal with machine byte order. I've tried the function ser_string(*char), but maybe that's not the right way? Excuse me, if i ask silly questions. > Since this topic is becoming more and more important, I'll try to write > a section of the manual on it in the next week or two that explains the > implementation details. That would be nice or maybe an additional example. Thanks for your answer and I hope you will find the time to help me with my problems. Greetings, Tim |