|
1 |
| -//! # bootc-managed container storage |
| 1 | +//! # bootc-managed instance of containers-storage: |
2 | 2 | //!
|
3 |
| -//! The default storage for this project uses ostree, canonically storing all of its state in |
4 |
| -//! `/sysroot/ostree`. |
| 3 | +//! The backend for podman and other tools is known as `container-storage:`, |
| 4 | +//! with a canonical instance that lives in `/var/lib/containers`. |
5 | 5 | //!
|
6 |
| -//! This containers-storage: which canonically lives in `/sysroot/ostree/bootc`. |
| 6 | +//! This is a `containers-storage:` instance` which is owned by bootc and |
| 7 | +//! is stored at `/sysroot/ostree/bootc`. |
| 8 | +//! |
| 9 | +//! At the current time, this is only used for Logically Bound Images. |
7 | 10 |
|
8 | 11 | use std::collections::HashSet;
|
9 | 12 | use std::io::Seek;
|
@@ -43,7 +46,9 @@ pub(crate) const SUBPATH: &str = "storage";
|
43 | 46 | /// The path to the "runroot" with transient runtime state; this is
|
44 | 47 | /// relative to the /run directory
|
45 | 48 | const RUNROOT: &str = "bootc/storage";
|
46 |
| -pub(crate) struct Storage { |
| 49 | + |
| 50 | +/// A bootc-owned instance of `containers-storage:`. |
| 51 | +pub(crate) struct CStorage { |
47 | 52 | /// The root directory
|
48 | 53 | sysroot: Dir,
|
49 | 54 | /// The location of container storage
|
@@ -147,7 +152,7 @@ pub(crate) fn ensure_floating_c_storage_initialized() {
|
147 | 152 | }
|
148 | 153 | }
|
149 | 154 |
|
150 |
| -impl Storage { |
| 155 | +impl CStorage { |
151 | 156 | /// Create a `podman image` Command instance prepared to operate on our alternative
|
152 | 157 | /// root.
|
153 | 158 | pub(crate) fn new_image_cmd(&self) -> Result<Command> {
|
@@ -380,5 +385,5 @@ impl Storage {
|
380 | 385 | #[cfg(test)]
|
381 | 386 | mod tests {
|
382 | 387 | use super::*;
|
383 |
| - static_assertions::assert_not_impl_any!(Storage: Sync); |
| 388 | + static_assertions::assert_not_impl_any!(CStorage: Sync); |
384 | 389 | }
|
0 commit comments