ZFS properties for new root or volumes

Hello.

Is there any way to set on creation of a vm or container the special_small_blocks and recordsize of the zfs dataset that is created for each volume?

It’s not clear in the documentation, but I think zfs.blocksize may set the recordsize for non-block datasets. I haven’t tested it, but the source hints at it here.

Other dataset properties like special_small_blocks you may be out of luck.