Skip to content

Allow appending to the default ZFS options via + prefix or add a defaults property #17112

@Impact123

Description

@Impact123

Describe the feature would like to see added to OpenZFS

lsblk allows appending additional options to the defaults via the + prefix like this

lsblk -o +FSTYPE,LABEL

The default list of columns may be extended if list is specified in the format +list (e.g., lsblk -o +UUID).
https://man.archlinux.org/man/lsblk.8.en

I would like if zfs list, zpool list and others would support this too so you can do something like this

zfs list -o +compression,compressratio
zpool list -o +autotrim,ashift

I'm aware there is a space property for zfs list but that changes the format and nothing similar seems to be available for zpool list.

How will this feature improve OpenZFS?

You need to type and remember fewer options if you want to add non-default ones.

Additional context

An alternative would be to provide a defaults property.

zfs list -o defaults,compression,compressratio
zpool list -o defaults,autotrim,ashift

Ideally both of these suggestion can be implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions