The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Switzerland, email:ftf@fsfeurope.org.
*/
-#ifndef _BACULA_XATTR_
-#define _BACULA_XATTR_
+#ifndef __XATTR_H
+#define __XATTR_H
/*
* Magic used in the magic field of the xattr struct.
};
/*
- * Private data structure for threadsafe save of xattrs.
- * For now its mostly for storing the solaris specific private data.
+ * Internal tracking data.
*/
-struct xattr_private_data_t {
- /*
- * This is the count of xattrs saved on a certain file, it gets reset
- * on each new file processed and is used to see if we need to send
- * the hidden xattr dir data. We only send that data when we encounter
- * an other xattr on the file.
- */
- int nr_xattr_saved;
- char toplevel_hidden_dir_xattr_data[MAXSTRING];
- int toplevel_hidden_dir_xattr_data_len;
- alist *xattr_link_cache;
+struct xattr_data_t {
+ POOLMEM *content;
+ uint32_t content_length;
+ uint32_t nr_errors;
+ uint32_t nr_saved;
+ alist *link_cache;
};
/*
*/
#define MAX_XATTR_STREAM (1 * 1024 * 1024) /* 1 Mb */
+/*
+ * Upperlimit on a xattr internal buffer
+ */
+#define XATTR_BUFSIZ 1024
+
#endif