[Samba] OT? File order on CentOS/Samba server

Jeremy Allison jra at samba.org
Fri Jan 23 02:01:32 GMT 2009


On Thu, Jan 22, 2009 at 08:28:41PM +0000, Miguel Medalha wrote:
>
> My question is: how is the order of files determined by Linux when a  
> particular order is not explicitly required by a program?

There is not ordering in POSIX filesystems. If you want
an ordered list you must sort them yourself. This isn't
guarenteed in Windows either btw.

Someone has posted a Samba VFS that will sort directory
output in alphabetical order (but only for the current
locale). You could examine that.

Jeremy.


More information about the samba mailing list