]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/attr.h
Backport from Bacula Enterprise
[bacula/bacula] / bacula / src / lib / attr.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2015 Kern Sibbald
5    Copyright (C) 2003-2014 Free Software Foundation Europe e.V.
6
7    The original author of Bacula is Kern Sibbald, with contributions
8    from many others, a complete list can be found in the file AUTHORS.
9
10    You may use this file and others of this release according to the
11    license defined in the LICENSE file, which includes the Affero General
12    Public License, v3.0 ("AGPLv3") and some additional permissions and
13    terms pursuant to its AGPLv3 Section 7.
14
15    This notice must be preserved when any source code is 
16    conveyed and/or propagated.
17
18    Bacula(R) is a registered trademark of Kern Sibbald.
19 */
20 /*
21  *   attr.h Definition of attributes packet for unpacking from tape
22  *
23  *    Kern Sibbald, June MMIII
24  *
25  */
26
27 #ifndef __ATTR_H_
28 #define __ATTR_H_ 1
29
30
31 struct ATTR {
32    int32_t stream;                    /* attribute stream id */
33    int32_t data_stream;               /* id of data stream to follow */
34    int32_t type;                      /* file type FT */
35    int32_t file_index;                /* file index */
36    int32_t LinkFI;                    /* file index to data if hard link */
37    int32_t delta_seq;                 /* delta sequence numbr */
38    uid_t uid;                         /* userid */
39    struct stat statp;                 /* decoded stat packet */
40    POOLMEM *attrEx;                   /* extended attributes if any */
41    POOLMEM *ofname;                   /* output filename */
42    POOLMEM *olname;                   /* output link name */
43    /*
44     * Note the following three variables point into the
45     *  current BSOCK record, so they are invalid after
46     *  the next socket read!
47     */
48    char *attr;                        /* attributes position */
49    char *fname;                       /* filename */
50    char *lname;                       /* link name if any */
51    JCR *jcr;                          /* jcr pointer */
52 };
53
54 #endif /* __ATTR_H_ */