Skip to content
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

btrfs driver error message is misleading #2249

Open
hanwen-flow opened this issue Feb 5, 2025 · 0 comments
Open

btrfs driver error message is misleading #2249

hanwen-flow opened this issue Feb 5, 2025 · 0 comments

Comments

@hanwen-flow
Copy link
Contributor

hanwen@hanwen-flow:~/vc/containers/podman$ mount | grep podman
/dev/mapper/vgubuntu-data on /home/hanwen/.local/share/containers/storage/btrfs type btrfs (rw,noatime,ssd,discard=async,space_cache=v2,subvolid=299,subvol=/hanwen-podman)
hanwen@hanwen-flow:~/vc/containers/podman$ podman run -dt docker.io/library/httpd
Error: "/home/hanwen/.local/share/containers/storage/btrfs" is not on a btrfs filesystem: prerequisites for driver not satisfied (wrong filesystem?)

clearly, the btrfs dir is on a btrfs filesystem. The FSMagic function looks at the parent dir of the passed in path,

https://sourcegraph.com/github.com/containers/podman-tui@c7273f6649a7a18ec9baae567a8c052363ee07bf/-/blob/vendor/github.com/containers/storage/drivers/driver_linux.go?L131

I don't understand why does it, but it's been like that since it was introduced in 48b1dd0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant