Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Impact123 opened this issue Mar 4, 2025 · 0 comments
Labels
Type: Feature Feature request or new feature

Comments

@Impact123
Copy link

Impact123 commented Mar 4, 2025

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 is notthing 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.

@Impact123 Impact123 added the Type: Feature Feature request or new feature label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

1 participant