-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options: keep using prior drivers if found #1618
Conversation
7b84089
to
9342270
Compare
There's a whole |
Ah it does a similar check, I think its a good idea if we can find a way so |
we may need to tweak |
When I was looking at this is seems this part was always ignored by |
9342270
to
3869c61
Compare
vfs
for old users
@giuseppe @nalind PTAL, it seems modifying behavior of |
3869c61
to
783d62c
Compare
cc @edsantiago (for info) I think this will unblock buildah vendor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
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: containers#1571 for prior discussions. Signed-off-by: Aditya R <arajan@redhat.com>
783d62c
to
9ef15e4
Compare
LGTM |
This change is causing a huge bloat for rootlessport (size increase is 3 MB) in podman. Making storage/types depend on the drivers causes a new gigantic transitive dependency chain. But more importantly this now causes build issues because it tries to build the devmapper driver even on systems without the device-mapper-devel installed, of course the correct thing is to use And to clarify rootlessport does not depend on Is there any way we can move this check into another package? Shouldn't this be decided in |
@flouthoc PTAL We should have never allowed the change in types/options.go Lets revert this change and rework it.
|
@rhatdan We can move |
Because of a c/storage change[1] all we get a lot of new dependencies in rootlessport despite not using them. Add build tags to exclude storage drivers to make the binary smaller until it get addressed in c/storage. This saves about 800 MB but the bloat due that change is still causing us to gain over 2 MB. This is not ideal but we should get vendoring going and not wait any longer. [1] containers/storage#1618 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
I think moving entire check to A simpler solution could be to create a function similar to This will remove @containers/storage-maintainers @Luap99 WDYT ? |
I cannot follow that statement? Looking at drivers.New() that function tries all drivers before it errors out when no driver works. |
@Luap99 @containers/storage-maintainers This is patch which i want to propose 0c6fcf4 on my branch https://github.com/flouthoc/storage/tree/move_scan_prior |
Nvm I think there is another simpler patch suggested by @giuseppe , d7a6662 on the branch https://github.com/flouthoc/storage/tree/use-readdir-prior, this should do the trick as well. |
Because of a c/storage change[1] all we get a lot of new dependencies in rootlessport despite not using them. Add build tags to exclude storage drivers to make the binary smaller until it get addressed in c/storage. This saves about 800 MB but the bloat due that change is still causing us to gain over 2 MB. This is not ideal but we should get vendoring going and not wait any longer. [1] containers/storage#1618 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Because of a c/storage change[1] all we get a lot of new dependencies in rootlessport despite not using them. Add build tags to exclude storage drivers to make the binary smaller until it get addressed in c/storage. This saves about 800 MB but the bloat due that change is still causing us to gain over 2 MB. This is not ideal but we should get vendoring going and not wait any longer. [1] containers/storage#1618 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Because of a c/storage change[1] all we get a lot of new dependencies in rootlessport despite not using them. Add build tags to exclude storage drivers to make the binary smaller until it get addressed in c/storage. This saves about 800 MB but the bloat due that change is still causing us to gain over 2 MB. This is not ideal but we should get vendoring going and not wait any longer. [1] containers/storage#1618 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Because of a c/storage change[1] all we get a lot of new dependencies in rootlessport despite not using them. Add build tags to exclude storage drivers to make the binary smaller until it get addressed in c/storage. This saves about 800 MB but the bloat due that change is still causing us to gain over 2 MB. This is not ideal but we should get vendoring going and not wait any longer. [1] containers/storage#1618 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
There is no need for
vfs
to be the default storage driver since kernel>= 5.13
supportsoverlay
natively however there is use-case for userswho don't had any configs and they started using
vfs
in a default manner following check is a hack to keepbuildah
andpodman
working for such users.See: #1571 for prior discussions.