Skip to content

btrfs driver error message is misleading #2249

@hanwen-flow

Description

@hanwen-flow
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions