To fix #11, I set the SMB share name just after the share purpose.
On a share smb resource creation with an ENHANCED_TIMEMACHINE purpose, the name is omitted and so TrueNAS will respond with an error 500. To fix this issue, I had to reorder how you set the CreateShareSMBParams struct.
I could not find why but the name is set to nil if we set it after Timemachine. If we set name before Timemachine, name is not omitted anymore.
To fix #11, I set the SMB share name just after the share purpose.
On a share smb resource creation with an ENHANCED_TIMEMACHINE purpose, the name is omitted and so TrueNAS will respond with an error 500. To fix this issue, I had to reorder how you set the
CreateShareSMBParams
struct. I could not find why but the name is set to nil if we set it afterTimemachine
. If we set name beforeTimemachine
, name is not omitted anymore.