From 6042dabc8e220d0b8a0a5728d2bdc0977461460b Mon Sep 17 00:00:00 2001 From: scott Date: Thu, 5 Mar 2026 16:02:52 -0500 Subject: [PATCH] Fix SMB share create: exclude server-generated path_local field TrueNAS 25.x returns path_local in share query results but rejects it on create with EINVAL. Added to _SMB_SHARE_READONLY so it is stripped from the payload before submission. Co-Authored-By: Claude Sonnet 4.6 --- truenas_migrate/migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truenas_migrate/migrate.py b/truenas_migrate/migrate.py index 69674ea..b0d55dc 100644 --- a/truenas_migrate/migrate.py +++ b/truenas_migrate/migrate.py @@ -14,7 +14,7 @@ from .summary import Summary # ───────────────────────────────────────────────────────────────────────────── # Read-only / server-generated fields that must NOT be sent on create/update -_SMB_SHARE_READONLY = frozenset({"id", "locked"}) +_SMB_SHARE_READONLY = frozenset({"id", "locked", "path_local"}) # CORE SMB share fields that do not exist in the SCALE API _SMB_SHARE_CORE_EXTRAS = frozenset({