]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/attr.h
495c1784f18596ebcd43d26266a154243228317b
[bacula/bacula] / bacula / src / lib / attr.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2003-2014 Free Software Foundation Europe e.V.
5
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.
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    Bacula® is a registered trademark of Kern Sibbald.
15 */
16 /*
17  *   attr.h Definition of attributes packet for unpacking from tape
18  *
19  *    Kern Sibbald, June MMIII
20  *
21  */
22
23 #ifndef __ATTR_H_
24 #define __ATTR_H_ 1
25
26
27 struct ATTR {
28    int32_t stream;                    /* attribute stream id */
29    int32_t data_stream;               /* id of data stream to follow */
30    int32_t type;                      /* file type FT */
31    int32_t file_index;                /* file index */
32    int32_t LinkFI;                    /* file index to data if hard link */
33    int32_t delta_seq;                 /* delta sequence numbr */
34    uid_t uid;                         /* userid */
35    struct stat statp;                 /* decoded stat packet */
36    POOLMEM *attrEx;                   /* extended attributes if any */
37    POOLMEM *ofname;                   /* output filename */
38    POOLMEM *olname;                   /* output link name */
39    /*
40     * Note the following three variables point into the
41     *  current BSOCK record, so they are invalid after
42     *  the next socket read!
43     */
44    char *attr;                        /* attributes position */
45    char *fname;                       /* filename */
46    char *lname;                       /* link name if any */
47    JCR *jcr;                          /* jcr pointer */
48 };
49
50 #endif /* __ATTR_H_ */