Commit Graph

13 Commits

Author SHA1 Message Date
Kir Kolyshkin 137ba2cc35 Remove devicemapper storage driver
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-04-15 14:44:29 -07:00
Gao Xiang 0f2b362a32 drivers: add EROFS filesystem magic
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>
2023-06-19 17:07:43 +08:00
Kir Kolyshkin a4d8f720a2 Format sources with gofumpt
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>
2023-05-26 16:17:31 -07:00
Aditya R 9ef15e4d49
options: keep using prior drivers if found
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>
2023-05-26 05:39:55 +05:30
Aaron Tomlin 04eb9630fc drivers/driver_linux: Show fstype in GetFSMagic() if debug logging is enabled
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>
2022-09-27 21:49:24 +01:00
Giuseppe Scrivano da09b934b6
drivers: enhance check for mount fs type
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>
2022-06-15 16:15:05 +02:00
Giuseppe Scrivano 30239a39ed
drivers: add a bunch of new file systems
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-09-30 09:43:25 +02:00
Giuseppe Scrivano d577584dd5
overlay: check for FUSE when using mountProgram
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>
2019-10-30 09:45:56 +01:00
Daniel J Walsh 5267ca2f20 If storage.conf graphdriver=="", devmapper shouldn't be tried
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>
2018-05-21 14:56:29 -04:00
Daniel J Walsh 57641cc0f9 Backport moby drivers general changes to containers/storage
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-26 20:45:15 +00:00
Nalin Dahyabhai 78e2e31a52 Default to overlay as "overlay"
When selecting overlay as a possible use-by-default driver, use it under
the name "overlay".

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-07-11 16:07:41 -04:00
Daniel J Walsh 09d2882036 We need to remove overlay as an option in containers/storage
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>
2017-03-27 11:38:02 -04:00
Nalin Dahyabhai 60ff079996 Rename: cow/cowman -> storage/oci-storage
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>
2016-07-18 17:35:50 -04:00