-
Notifications
You must be signed in to change notification settings - Fork 39
/
logic.h
37 lines (29 loc) · 887 Bytes
/
logic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* logic.h / logic.c
*
* the logic for the three feature functions
*/
#ifndef OVERLAYFS_TOOLS_LOGIC_H
#define OVERLAYFS_TOOLS_LOGIC_H
#include <stdbool.h>
extern bool verbose;
extern bool brief;
/*
* feature function. will take very long time to complete. returns 0 on success
*/
int vacuum(const char* lowerdir, const char* upperdir, FILE* script_stream);
/*
* feature function. will take very long time to complete. returns 0 on success
*/
int diff(const char* lowerdir, const char* upperdir);
/*
* feature function. will take very long time to complete. returns 0 on success
*/
int merge(const char* lowerdir, const char* upperdir, FILE* script_stream);
/*
* Unfold metacopy and redirect upper.
*
* mountdir is required and lowerdir is irrelevant.
*/
int deref(const char* mountdir, const char* upperdir, FILE* script_stream);
#endif //OVERLAYFS_TOOLS_LOGIC_H