Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
PR #1507: support storage directories up to 1 year old
Browse files Browse the repository at this point in the history
  • Loading branch information
reidpr authored Jan 5, 2023
1 parent 3e9ded7 commit 2042560
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions doc/ch-image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ Storage directory
=================

:code:`ch-image` maintains state using normal files and directories located in
its *storage directory*; contents include temporary images used for building
and various caches.
its *storage directory*; contents include various caches and temporary images
used for building.

In descending order of priority, this directory is located at:

Expand Down Expand Up @@ -260,11 +260,12 @@ images runnable with :code:`ch-run`, this is not a supported use case. The
supported workflow uses :code:`ch-convert` to obtain a packed image; see the
tutorial for details.

The storage directory format changes on no particular schedule. Often
:code:`ch-image` is able to upgrade the directory; however, downgrading is not
supported and sometimes upgrade is not possible. In these cases,
The storage directory format changes on no particular schedule.
:code:`ch-image` is normally able to upgrade directories produced by a given
Charliecloud version up to one year after that version's release. Upgrades
outside this window and downgrades are not supported. In these cases,
:code:`ch-image` will refuse to run until you delete and re-initialize the
directory with :code:`ch-image reset`.
storage directory with :code:`ch-image reset`.

.. warning::

Expand Down
4 changes: 4 additions & 0 deletions lib/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
# Storage directory format version. We refuse to operate on storage
# directories with non-matching versions. Increment this number when the
# format changes non-trivially.
#
# To see the directory formats in released versions:
#
# $ git grep -F 'STORAGE_VERSION =' $(git tag | sort -V)
STORAGE_VERSION = 5


Expand Down

0 comments on commit 2042560

Please sign in to comment.