]> git.sur5r.net Git - bacula/bacula/commit
Don't copy xattr and acl streams.
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 6 Jan 2012 18:31:30 +0000 (19:31 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 6 Jan 2012 19:44:01 +0000 (20:44 +0100)
commit177c0c2270f049c80fc92baa9ffd7ba5dbc8e336
tree4534cf97261f1cd39e27687f67ae9b3f88db7715
parentaeff2004c3fba81ca569cbcc25ec8ba2638bf565
Don't copy xattr and acl streams.

- With the new delayed restore of xattr and acl streams we
  copy the stream twice. First from the SD buffer to the
  stack and then again from the stack when we pop an element
  into a JCR POOLMEM. This can be done a bit more efficient.
  So we break the JCR struct into an union one for a build
  of xattr and acl streams and one for a parse of them.
  We pass the content and content_length now as arguments
  along the parse (restore) code path. This saves for the
  delayed version one copy and for a directory copying
  is not done at all.
- Reformatted some code along the way,
     - functions with more then 2 arguments are splitted
       over multiple lines.
     - The stream arrays etc are formated a bit
       differently so they are better readable and easy
       to extend.
     - The build and parse function pointers are
       formated a bit differently so they span
       multiple lines and should be better readable.
     - reformated long lines
     - Fixed Tru64 acl code.
bacula/src/filed/acl.c
bacula/src/filed/acl.h
bacula/src/filed/backup.c
bacula/src/filed/protos.h
bacula/src/filed/restore.c
bacula/src/filed/xattr.c
bacula/src/filed/xattr.h