Rework immutability and overlays
This commit is contained in:
parent
fddf7f86ae
commit
5e65e6c06e
13 changed files with 1141 additions and 70 deletions
37
overlayfs-tools/logic.h
Executable file
37
overlayfs-tools/logic.h
Executable file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue