-
Notifications
You must be signed in to change notification settings - Fork 267
Description
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.
storage/drivers/btrfs/btrfs.go
Line 99 in 9587fda
| 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.