]> git.sur5r.net Git - bacula/bacula/commit - bacula/src/filed/xattr.c
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)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:24 +0000 (14:50 +0200)
commit2fd5acb24ccb85dc43b53456a8653186daaaf18b
treeb390d62b8bd3ce94081787eafc04c519c62171b0
parent45c14e5b383167d5469fd35f936e90ccd2226634
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