Ascending Directory Listings

Status
Not open for further replies.

kaigoh

Cadet
Joined
Aug 5, 2012
Messages
3
Hello all,

I can normally figure most things out with a quick Google, but this one has me stumped.

For the bulk of the time I've had my NAS running, it has only been accessed by Windows clients, who, when accessing the share, will automatically list the folder in ascending order. Likewise, any Linux clients accessing the folders via SSH will do the same.

However, I now have Linux clients and other Linux based devices (IE Smart TVs and Blueray players) accessing the shares via CIFS and the directorys are listed in no particular order whatsoever. I have tried moving the directories to another folder and then back again in the hopes that this would force the filesystem to re-index the directories into ascending order, but to no avail. I realise that I can configure the file browser to list alphabetically, but unfortunatly, on the TVs and Bluray players, I have no control over the way the folders and files are listed.

If anyone can offer a solution, it would be much appreciated. Just some extra info, I am running FreeNAS-8.0-RELEASE-amd64, the filesystem is ZFS and the size of the data is around10TB. Any solution must work recursively, I need sub folders to list in alphabetical order.

Many thanks,

Kai.
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
As for as I know the file system is not responsible for sorting the entries, but the client (here: program you are accessing SSH / CIFS with) is. In Windows Explorer and on Linux you can just select in which order you want to see the contents (e.g. sorted by Date, by Alphabet, by Size, etc.).
You might want to check the manual of the devices where you have problems, or go over all settings which are available and see if you are lucky and find something. Some years ago, I encountered some DVD players which just offered no way to resort the directory contents..
 
Status
Not open for further replies.
Top