Skip to content

Add support for block.create_options#3332

Open
huoxingdawang wants to merge 2 commits into
lxc:mainfrom
huoxingdawang:Feat_create_options
Open

Add support for block.create_options#3332
huoxingdawang wants to merge 2 commits into
lxc:mainfrom
huoxingdawang:Feat_create_options

Conversation

@huoxingdawang
Copy link
Copy Markdown

This PR close #3308

incusd

  • block.create_options — added to block-based volumes on LVM, ZFS, Ceph, Linstor, and TrueNAS drivers (alongside the existing block.mount_options)
  • btrfs.create_options — added to the BTRFS pool driver (alongside the existing btrfs.mount_options)

test

Added a shared helper storage_check_create_options_applied(), which creates a volume with driver-specific options, attaches it to a running instance (to obtain the device path), then inspects the formatted filesystem with tune2fs or xfs_info to confirm the options were actually applied.

Signed-off-by: huoxingdawang <lijunyandeyouxiang@163.com>
Signed-off-by: huoxingdawang <lijunyandeyouxiang@163.com>
@huoxingdawang huoxingdawang requested a review from stgraber as a code owner May 10, 2026 13:46
@github-actions github-actions Bot added the Documentation Documentation needs updating label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation needs updating

Development

Successfully merging this pull request may close these issues.

Add block.create_options to block storage drivers

1 participant