2 Bacula® - The Network Backup Solution
4 Copyright (C) 2004-2014 Free Software Foundation Europe e.V.
6 The main author of Bacula is Kern Sibbald, with contributions from many
7 others, a complete list can be found in the file AUTHORS.
9 You may use this file and others of this release according to the
10 license defined in the LICENSE file, which includes the Affero General
11 Public License, v3.0 ("AGPLv3") and some additional permissions and
12 terms pursuant to its AGPLv3 Section 7.
14 Bacula® is a registered trademark of Kern Sibbald.
20 #if defined(HAVE_LINUX_OS)
21 #define BXATTR_ENOTSUP EOPNOTSUPP
22 #elif defined(HAVE_DARWIN_OS)
23 #define BXATTR_ENOTSUP ENOTSUP
24 #elif defined(HAVE_HURD_OS)
25 #define BXATTR_ENOTSUP ENOTSUP
29 * Magic used in the magic field of the xattr struct.
30 * This way we can see we encounter a valid xattr struct.
32 #define XATTR_MAGIC 0x5C5884
35 * Internal representation of an extended attribute.
41 uint32_t value_length;
46 * Internal representation of an extended attribute hardlinked file.
48 struct xattr_link_cache_entry_t {
53 #define BXATTR_FLAG_SAVE_NATIVE 0x01
54 #define BXATTR_FLAG_RESTORE_NATIVE 0x02
56 struct xattr_build_data_t {
60 uint32_t content_length;
64 struct xattr_parse_data_t {
69 * Internal tracking data.
72 uint32_t flags; /* See BXATTR_FLAG_* */
75 struct xattr_build_data_t *build;
76 struct xattr_parse_data_t *parse;
81 * Maximum size of the XATTR stream this prevents us from blowing up the filed.
83 #define MAX_XATTR_STREAM (1 * 1024 * 1024) /* 1 Mb */
86 * Upperlimit on a xattr internal buffer
88 #define XATTR_BUFSIZ 1024