Composefs use cases use on-disk EROFS for metadata and I hope more
people could be interested in EROFS and make it better.
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
gofumpt is a superset of gofmt, enabling some more code formatting
rules.
This commit is brought to you by
gofumpt -w .
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
There is no need for `vfs` to be the default storage driver since kernel
>= 5.13 supports `overlay` natively however there is use-case for users
who don't had any configs and they started using `vfs` in a default
manner following check is a hack to keep `buildah` and `podman` working
for such users.
See: https://github.com/containers/storage/pull/1571 for prior
discussions.
Signed-off-by: Aditya R <arajan@redhat.com>
In the context of github.com/containers/storage/drivers.GetFSMagic()
when log-level debug is enabled show the filesystem type/or ID that is
returned by the statfs(2) system call in particular when the ID is not
known to podman. This might suggest an unsupported configuration.
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
when checking that a mount has a specific file system type, also
validate that it is on a different than its parent directory.
This helps when using virtiofs as the underlying file system since the
check used for fuse-overlayfs would fail since they both use FUSE.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
if a mountProgram is specified, check that the file system is already
mounted using the FUSE magic number instead of overlay. It enables
using fuse-overlayfs on top of overlay.
Closes: https://github.com/containers/storage/issues/447
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This patch removes devicemapper from the list of drivers tried when driver=""
This change is necessary since tests in tools that use containers storage are
being run when driver is not being specified. In this situation the test fails
because devmapper returns and error other then ErrNotSupported. With this
change a useful message will go to the logs if the user actually specifies
"devicemapper" in config.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Since we prefer our users to use overlay2, there is not reason to
support and provide overlay as an option, and potentially use a worse
driver by accident.
We also need to make overlay2 the prefered driver in containers/storage.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Rename the library module and CLI wrapper.
Rename daemon/graphdriver to drivers.
Catch up vendoring to match modules we've pruned.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>