Interesting problem ... (tested on multiple truenas units from the mini-x to Dell server homebuilt and from Windows server and Windows 10).
If you open a command prompt (Windows 10 in this case) and do a 'dir" command on a WINDOWS SMB mapped drive it appears that there is an implied "dir /on" switch on the command. Returned listing is showing files in order by name [a-z0-9] etc ...
If you open a command prompt (Windows 10 in this case) and do a 'dir" command on a TrueNAS SMB mapped drive then I have no idea what it is basing the listing on, but It DOES NOT match the listing from the Windows SMB share (exact copy of the directory).
This not only affects a simple command prompt but also any windows application that calls for a list of files in a directory/folder to build a table. I have been going through the SAMBA guide but cannot find anything.
Is there any option for SAMBA (global/share) that makes it show a listing by default in the "order by name" format when a standard "dir " is requested like a Windows share does?
If you open a command prompt (Windows 10 in this case) and do a 'dir" command on a WINDOWS SMB mapped drive it appears that there is an implied "dir /on" switch on the command. Returned listing is showing files in order by name [a-z0-9] etc ...
If you open a command prompt (Windows 10 in this case) and do a 'dir" command on a TrueNAS SMB mapped drive then I have no idea what it is basing the listing on, but It DOES NOT match the listing from the Windows SMB share (exact copy of the directory).
This not only affects a simple command prompt but also any windows application that calls for a list of files in a directory/folder to build a table. I have been going through the SAMBA guide but cannot find anything.
Is there any option for SAMBA (global/share) that makes it show a listing by default in the "order by name" format when a standard "dir " is requested like a Windows share does?