2
* cleaner_exec.h - old cleaner control routines
4
* Licensed under LGPLv2: the complete text of the GNU Lesser General
5
* Public License can be found in COPYING file of the nilfs-utils
8
* Copyright (C) 2007-2011 Nippon Telegraph and Telephone Corporation.
11
#ifndef NILFS_CLEANER_EXEC_H
12
#define NILFS_CLEANER_EXEC_H
14
#include <sys/types.h>
17
#define NILFS_CLEANERD_NAME "nilfs_cleanerd"
18
#define PIDOPT_NAME "gcpid"
20
int nilfs_launch_cleanerd(const char *device, const char *mntdir,
21
unsigned long protperiod, pid_t *ppid);
22
int nilfs_ping_cleanerd(pid_t pid);
23
int nilfs_shutdown_cleanerd(const char *device, pid_t pid);
25
extern void (*nilfs_cleaner_logger)(int priority, const char *fmt, ...);
26
extern void (*nilfs_cleaner_printf)(const char *fmt, ...);
27
extern void (*nilfs_cleaner_flush)(void);
29
#endif /* NILFS_CLEANER_EXEC_H */