Previously, git was ignoring the pattern 'container-storage' everywhere.
Since changes to `cmd/container-storage` may be desirable, anchor the
pattern to the repo root only.
Signed-off-by: Chris Evich <cevich@redhat.com>
disable these tests when using fuse-overlayfs. fuse-overlayfs has
support for IDs shifting, so it will end up to cancel the effect of
these tests.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This is already done by the driver when creating the directory, so we
will end up trying to map IDs that were already mapped.
regression introduced with d1554f0dcd
and 7c6d502e9b.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Make sure that the appropriate lock file's contents (the last-writer ID)
actually gets updated when we create layers, images, and containers.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When creating a container, don't worry about whether or not the base
image's top layer has the right ID mappings in cases where the base
image doesn't have a top layer.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Fix the sections and their titles in the manpage for containers-storage.conf.
Section titles are all capitalized and don't end with a period.
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
Add to the main manpage the reference to the fact that OSTree will be
used for file deduplication on readonly layers if:
* ostree_repo configured,
* containters-storage build with support for OSTree
That information was missing throughout all the documentation.
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
prefer the custom idmapping specified for the layer instead of using
the global one configured for the driver.
Closes: https://github.com/containers/libpod/issues/2960
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
Noticed that the link directory may be lost also with the symlinks,
so this fix creates it if not found and then restores all the links.
Also fix up logic to check wether a dir is found or not instead of
a regular file.
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
These interfaces can be used to setup a graphdriver mountpoint
of the source directory for use within a container.
The RemoveTemp interface umounts the mountpoint and then removes
all of the modified data in the graphdriver for this source directory.
The primary use case of these interfaces is for container engines that
want to mount a directory from the host system into the container. The
source dirctory then can be modified without actually changing the
directory on the host.
Containers will use these interfaces for sharing packaing cache directories
like /var/cache/dnf, to help speed up container builds.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
The manpage of the configuration goes to section 5 instead of 1, like
most of the other manpages. Therefore the existing code wasn't handling
the manpage for 'containers-storage.conf' not appropriately.
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>