rob19
Cadet
- Joined
- Feb 12, 2023
- Messages
- 6
Hi all,
My first TrueNAS project got underway today, however I ran into a weird issue when trying to copy data over from an NTFS share. My robocopy command was failing with a generic error "error 87 the parameter is incorrect". I'm a user of both OSX, Windows and Linux, all of which have used the drive in question of the years. Hours of searching later and I now understand all about alternate data streams...
The problem turns out to be potential stream corruption or similar? I'm seeing a lot of folders (only folders), with an empty "com.apple.FinderInfo". This shows up in the finder by using ls -l@ as "com.apple.FinderInfo -1". The -1 means no data, and can be confirmed with xattr. Any directory that has data here copies correctly.
TrueNAS reports the error as:
open_directory: unable to create xxxx. Error was NT_STATUS_OBJECT_NAME_COLLISION smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_OBJECT_NAME_COLLISION] || at ../../source3/smbd/smb2_create.c:337
Some further searching tells me that there probably isn't anything important stored here, at least that I'm using. So I removed it recursively with the command:
xattr -r -d com.apple.FinderInfo *
Is this a bug in TrueNAS? Or something else? It would be nice if it handled it transparently instead of spitting the dummy.
Thanks
Rob
My first TrueNAS project got underway today, however I ran into a weird issue when trying to copy data over from an NTFS share. My robocopy command was failing with a generic error "error 87 the parameter is incorrect". I'm a user of both OSX, Windows and Linux, all of which have used the drive in question of the years. Hours of searching later and I now understand all about alternate data streams...
The problem turns out to be potential stream corruption or similar? I'm seeing a lot of folders (only folders), with an empty "com.apple.FinderInfo". This shows up in the finder by using ls -l@ as "com.apple.FinderInfo -1". The -1 means no data, and can be confirmed with xattr. Any directory that has data here copies correctly.
TrueNAS reports the error as:
open_directory: unable to create xxxx. Error was NT_STATUS_OBJECT_NAME_COLLISION smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_OBJECT_NAME_COLLISION] || at ../../source3/smbd/smb2_create.c:337
Some further searching tells me that there probably isn't anything important stored here, at least that I'm using. So I removed it recursively with the command:
xattr -r -d com.apple.FinderInfo *
Is this a bug in TrueNAS? Or something else? It would be nice if it handled it transparently instead of spitting the dummy.
Thanks
Rob