Implement snapshot verification command

This commit is contained in:
2026-11-01 16:31:51 +01:00
parent 4b1d0b02b2
commit c63530da34
7 changed files with 594 additions and 16 deletions

View File

@@ -5,5 +5,6 @@
#include "create.h"
#include "list.h"
#include "diff.h"
#include "verify.h"
#endif

11
include/verify.h Normal file
View 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