]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/attr.h
Add temporary fix to avoid a deadlock after a reload command on an incorrect configur...
[bacula/bacula] / bacula / src / lib / attr.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2016 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
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.
13
14    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  *   attr.h Definition of attributes packet for unpacking from tape
21  *
22  *    Kern Sibbald, June MMIII
23  *
24  */
25
26 #ifndef __ATTR_H_
27 #define __ATTR_H_ 1
28
29
30 struct ATTR {
31    int32_t stream;                    /* attribute stream id */
32    int32_t data_stream;               /* id of data stream to follow */
33    int32_t type;                      /* file type FT */
34    int32_t file_index;                /* file index */
35    int32_t LinkFI;                    /* file index to data if hard link */
36    int32_t delta_seq;                 /* delta sequence numbr */
37    uid_t uid;                         /* userid */
38    struct stat statp;                 /* decoded stat packet */
39    POOLMEM *attrEx;                   /* extended attributes if any */
40    POOLMEM *ofname;                   /* output filename */
41    POOLMEM *olname;                   /* output link name */
42    /*
43     * Note the following three variables point into the
44     *  current BSOCK record, so they are invalid after
45     *  the next socket read!
46     */
47    char *attr;                        /* attributes position */
48    char *fname;                       /* filename */
49    char *lname;                       /* link name if any */
50    JCR *jcr;                          /* jcr pointer */
51 };
52
53 #endif /* __ATTR_H_ */