Disk ARchive 2.7.14
Full featured and portable backup and archiving tool
Loading...
Searching...
No Matches
src/libdar/entree_stats.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2024 Denis Corbin
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18//
19// to contact the author, see the AUTHOR file
20/*********************************************************************/
21
25
26#ifndef ENTREE_STATS_HPP
27#define ENTREE_STATS_HPP
28
29#include "../my_config.h"
30
31extern "C"
32{
33} // end extern "C"
34
35#include "infinint.hpp"
36#include "user_interaction.hpp"
37
38#include <memory>
39
40namespace libdar
41{
42 class cat_entree;
43
46
48 struct entree_stats
49 {
50 infinint num_x;
51 infinint num_d;
52 infinint num_f;
53 infinint num_c;
54 infinint num_b;
55 infinint num_p;
56 infinint num_s;
57 infinint num_l;
58 infinint num_D;
59 infinint num_hard_linked_inodes;
60 infinint num_hard_link_entries;
62 infinint saved;
63 infinint patched;
64 infinint inode_only;
65 infinint total;
66 void clear() { num_x = num_d = num_f = num_c = num_b = num_p
69 void add(const cat_entree *ref);
70 void listing(user_interaction & dialog) const;
71 };
72
74
75} // end of namespace
76
77#endif
include macro defined by the configure script and some specific additional ones
libdar namespace encapsulate all libdar symbols
switch module to limitint (32 ou 64 bits integers) or infinint
defines the interaction interface between libdar and users.
infinint saved
total number of saved inode (unix inode, not inode class) hard links do not count here
infinint patched
total number of saved data as binary delta patch
infinint total
total number of inode in archive (unix inode, not inode class) hard links do not count here
infinint inode_only
total number of inode which metadata changed without data being modified
infinint num_hard_linked_inodes
number of inode that have more than one link (inode with "hard links")
infinint num_f
number of plain files (hard link or not, thus file directory entries)
infinint num_x
number of file referenced as destroyed since last backup