From db3fb428599c9c8fe105dcf4ba8d1c914c54cc26 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 15 Oct 2026 08:19:48 +0000 Subject: More work on format-upgrade inclusion: real meta-information storage If a db format upgrade is necessary, we need to compile the snapshot with the new s6-rc-compile. There's data we need to pass to it that isn't stored (options passed when committing the original set), so we store it in the db itself (patching s6-rc-compile). We modify the s6-rc-compile wrappers to pass all this metadata. Next, we will compile the snapshot. --- src/include/s6-rc/repo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/s6-rc/repo.h b/src/include/s6-rc/repo.h index 6ecec15..6c9b17b 100644 --- a/src/include/s6-rc/repo.h +++ b/src/include/s6-rc/repo.h @@ -26,6 +26,7 @@ extern int s6rc_repo_ls (char const *, stralloc *, genalloc *) ; extern char const s6rc_repo_rxnames[4][7] ; extern uint32_t s6rc_repo_read_major (char const *) ; /* the major a db was compiled with */ +extern int s6rc_repo_install_needs_upgrade (char const *) ; extern int s6rc_repo_makestores (char const *, char const *const *, uint16_t, char *) ; -- cgit v1.3.1