2
* cleanerd.h - NILFS cleaner daemon.
4
* Copyright (C) 2007 Nippon Telegraph and Telephone Corporation.
6
* This file is part of NILFS.
8
* NILFS is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* NILFS is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with NILFS; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
* Written by Koji Sato <koji@osrg.net>.
24
* Maintained by Ryusuke Konishi <ryusuke@osrg.net> from 2008.
30
#include <sys/types.h>
35
#include "cldconfig.h"
39
* struct nilfs_cleanerd - nilfs cleaner daemon
41
* @c_config: config structure
42
* @c_conffile: configuration file name
43
* @c_running: running state
44
* @c_fallback: fallback state
45
* @c_ncleansegs: number of semgents cleaned per cycle
46
* @c_cleaning_interval: cleaning interval
47
* @c_protcno: the minimum of checkpoint numbers within protection period
48
* @c_prottime: start time of protection period
49
* @c_target: target time for sleeping
51
struct nilfs_cleanerd {
52
struct nilfs *c_nilfs;
53
struct nilfs_cldconfig c_config;
58
time_t c_cleaning_interval;
59
nilfs_cno_t c_protcno;
61
struct timeval c_target;
65
#define SYSCONFDIR "/etc"
66
#endif /* SYSCONFDIR */
67
#define NILFS_CLEANERD_CONFFILE SYSCONFDIR "/nilfs_cleanerd.conf"
70
* struct nilfs_segimp - segment importance
71
* @si_segnum: segment number
72
* @si_importance: importance of segment
76
unsigned long long si_importance;
79
#endif /* CLEANERD_H */