There's a difference between working around an issue and fixing an issue. Disable ADS support works around it because it avoids the delete_all_streams() function.Thanks for the update !
So you do not think that it simply solves the issue if I disable alternate data streams ?
What version of FreeNAS/TrueNAS is this?@tiberiusQ @anodos
I have the same issue on an SMB Share which i have full access ! i can read-write-delete-modify on that folder, but i can't clear the acrolock.tmp file. How you manage to workout on that ?
Version:What version of FreeNAS/TrueNAS is this?
Should have been fixed with commit 41d5f62a70e2575e786c1b6f4d1c0bf87e4a7344 in our ports repo. Please PM me a debug.Version:
TrueNAS-12.0-U1
Should have been fixed with commit 41d5f62a70e2575e786c1b6f4d1c0bf87e4a7344 in our ports repo. Please PM me a debug.
The root cause IIRC was that adobe creates temporary file with ACL containing no ACEs, sets delete-on-close flag, then closes the file. As part of the delete-on-close song-and-dance, samba iterates through all alternate datastreams on the file and deletes them. Unfortunately, at this point we no longer have rights to read the streams, the delete-on-close fails, and we no longer have access to delete the acrotmp file. So question is why it didn't auto-delete in your case.
System->Advanced->Save DebugHello Sir,
i had also read errors on my syncthing server on that folders, so i go into shell and manually rm those acrolock files.tmp
how can i send you a debug or the information you need ??
System->Advanced->Save Debug
Hmm... this area was not touched in U5.1 -> U6 update.Hi,
Unfortunately It seems that the acrolock temp files are back + the user report that file locking does not work anymore just with pdf files !
Still the same box and permissions since last time....It looks that the issue came back with TruenasU6!
Well I upgraded since Frennas times but recently I upgraded to U6 from U5 I never was on 5.1 because it was not necessary...Did you upgrade from U5.1 to U6?
commit fe8914e5e39cc89993841a18e75e416ca9b93c06 Author: Andrew Walker <awalker@ixsystems.com> Date: Thu Jan 28 13:32:55 2021 -0500 s3:modules:ixnas - fix ntacl handling for linux clients with cifsacl When an SMB share is mounted by linux client with option cifsacl, chmod requests are converted into SETINFO requests with an approximation of the POSIX mode and inheritance flags removed. In this case, we need to not add our locking entry to directories and thereby allow zfs_acl_chmod() in ZFS to add default ACL entries.
diff --git a/source3/modules/vfs_ixnas.c b/source3/modules/vfs_ixnas.c index 42282be695f..8916c3391c8 100644 --- a/source3/modules/vfs_ixnas.c +++ b/source3/modules/vfs_ixnas.c @@ -1126,7 +1126,7 @@ static NTSTATUS ixnas_set_nfs4_acl(vfs_handle_struct *handle, * special entries to ZFS ACL on file creation on absence of inheriting * special entries in the parent directory. */ - if (config->zfs_acl_ignore_empty_mode && has_inheritable) { + if ((naces == 0) || (config->zfs_acl_ignore_empty_mode && has_inheritable)) { if (acl_create_entry(&zacl, &hidden_entry) < 0) { DBG_ERR("Failed to create new ACL entry: %s\n", strerror(errno)); }