Impact of SMB preset on xattr

I’m trying to understand the impact of presets on dataset properties. I’m using TrueNAS SCALE 25.04 with ZFS version zfs-2.3.0-1 and zfs-kmod-2.3.0-1.

According to the forum, when a dataset is created with the SMB preset, it should set xattr to sa. However, when I create a new dataset, the xattr property is set to on instead.

What could be the reason for this discrepancy?

Hi and welcome to the forums.

I’ve just created a new SMB dataset with the SMB preset and can confirm that xattr=on. Not sure why tbh. Currently running 25.04.1.

Even more interestingly you can’t seem to change the setting in the shell using zfs set xattr=sa pool/dataset

Appears to work as expected in 24.10.2.2 with xatrr=sa

Perhaps raise a bug report above.

Thank you for the confirmation. I have reported the bug.

1 Like

That’s not a bug. The meaning of ON changed in ZFS 2.3. See man zfsprops

2 Likes

Ahh, that explains everything! Thank you.