mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
Implement snapshot verification command
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
#include "create.h"
|
||||
#include "list.h"
|
||||
#include "diff.h"
|
||||
#include "verify.h"
|
||||
|
||||
#endif
|
||||
|
||||
11
include/verify.h
Normal file
11
include/verify.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef VERIFY_H
|
||||
#define VERIFY_H
|
||||
|
||||
#include "status.h"
|
||||
|
||||
/* Compare a snapshot with the live tree rooted at root_fs.
|
||||
Returns 0 when they match, 1 when differences were found and reported on
|
||||
stdout, -1 on a system/IO error, and FSNAP_EPARSE on a malformed snapshot. */
|
||||
int verify(const char *snapshot, const char *root_fs);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user