storage icon indicating copy to clipboard operation
storage copied to clipboard

btrfs driver error message is misleading

Open hanwen-flow opened this issue 11 months ago • 0 comments

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 48b1dd0084904678728817d728bb9ab1c0183aad.

hanwen-flow avatar Feb 05 '25 18:02 hanwen-flow