Skip to content

Regression: unknown option btrfs.size in storage.conf for Btrfs driver #2390

@akhilsaivenkata

Description

@akhilsaivenkata

Description: Setting size = "5g" (or any variation) in /etc/containers/storage.conf under [storage.options.btrfs] fails with Error: configure storage: unknown option btrfs.size

Version:
Podman 5.8.1 (Fedora 42),
containers/storage v1.62.0

Root Cause Analysis:
I've checked the source code for v5.8.1 and identified a missing case in the parser.

func parseOptions(opt []string) (btrfsOptions, bool, error) {

In drivers/btrfs/btrfs.go, the btrfsOptions struct correctly contains a size field, and the parseStorageOpt function (used for CLI flags) correctly parses it. However, the parseOptions function which is responsible for parsing the storage.conf file is missing the case for btrfs.size.

I am going to raise a PR and link this issue to it.

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