Samba VFS dirsort

Status
Not open for further replies.

mrlindstrom

Cadet
Joined
Dec 3, 2012
Messages
5
Has anyone gotten this Samba module to work? I've added
Code:
vfs objects = dirsort
to my auxiliary parameters section of the CIFS configuration in FreeNAS, but it doesn't appear to be working. I have verified that it shows up in the smb.conf and have completely restarted the box to see if that would force it to take effect.

FreeNAS version: FreeNAS-8.2.0-BETA2-x64 (r10638)
Samba version: Version 3.6.3
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Well, I just tried it and it didn't work. I did a little googling and even tried "vfs_objects = dirsort" but that didn't work either. I did try stopping and restarting the service between settings changes but still didn't work.

I didn't check out the log file, but I'm about to go to bed. Perhaps someone knows the answer otherwise I'll take a look tomorrow.
 

mrlindstrom

Cadet
Joined
Dec 3, 2012
Messages
5
Well, I just tried it and it didn't work. I did a little googling and even tried "vfs_objects = dirsort" but that didn't work either. I did try stopping and restarting the service between settings changes but still didn't work.

I didn't check out the log file, but I'm about to go to bed. Perhaps someone knows the answer otherwise I'll take a look tomorrow.

Any luck getting it to work? I have since upgraded to 8.3.0 release and still no luck.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Nope. I did some more searching but couldn't find any reason to think that it wouldn't work. But it definitely doesn't seem to work. I'm up to my eyeballs with a bunch of FreeNAS stuff so I'm hoping to give it another more serious look at it in a few days.
 

mrlindstrom

Cadet
Joined
Dec 3, 2012
Messages
5
From the logs, it appears that samba is not loading the module when a windows client connects to the share:

Code:
[2012/12/08 19:30:55.295145,  2] auth/auth.c:309(check_ntlm_password)
  check_ntlm_password:  authentication for user [root] -> [root] -> [root] succeeded
[2012/12/08 19:30:55.299051,  2] lib/module.c:64(do_smb_load_module)
  Module '/usr/local/lib/samba/vfs/zfsacl.so' loaded
[2012/12/08 19:30:55.299310,  1] smbd/service.c:1114(make_connection_snum)
  matthewlindstro (10.1.0.110) connect to service NAS initially as user root (uid=0, gid=0) (pid 92854)


However, when a mac client connects to the share, you can see the module load:

Code:
[2012/12/08 19:31:24.726843,  2] smbd/reply.c:553(reply_special)
  netbios connect: name1=10.1.0.162     0x20 name2=JESSICANEWELL  0x0
[2012/12/08 19:31:24.726924,  2] smbd/reply.c:573(reply_special)
  netbios connect: local=10.1.0.162 remote=jessicanewell, name type = 0
[2012/12/08 19:31:24.735308,  2] lib/module.c:64(do_smb_load_module)
  Module '/usr/local/lib/samba/vfs/dirsort.so' loaded
 

mrlindstrom

Cadet
Joined
Dec 3, 2012
Messages
5
I managed to get it to work by manually editing the smb.conf and changing the line under the share itself from:

Code:
vfs objects =  zfsacl


to

Code:
vfs objects =  zfsacl, dirsort


After making the change I have to restart the samba service from the command line (otherwise FreeNAS just overwrite the smb.conf file again) and it is working. Not a true fix, but better than nothing at the moment.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
You should open a ticket and include the info you found at support.freenas.org.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Status
Not open for further replies.
Top