korrupto77
Explorer
- Joined
- Jan 2, 2013
- Messages
- 50
Hi Gents,
Since some time I'm facing with an annoying issue: AFP does'nt show volume content properly, i mean there are files and folder in wrong place and if i check in ssh everything is fine.
Let's skip the main question related to the reasons why i'm using AFP .... :(
I googled a bit and only found this http://www.nicksherlock.com/2014/01/freenas-zfs-afp-filesharing-rsync-bad-idea/ which is extremely helpful.
It is reasonable figure out the issue is caused by non UTF8-MAC Charset generated by /usr/local/libexec/nas/generate_afpd_conf.py.
after modifying the generate_afpd_conf.py, I haven't seen any improvement regarding the main issue and
if I check the output of /usr/local/etc/afp.conf there are no differences.
Any Help ??? Thanks
[Global]
uam list = uams_dhx.so uams_dhx2.so uams_gss.so
afp listen = xx.xx.xx.xx
max connections = 50
mimic model = RackMac
vol dbnest = no
vol dbpath = /mnt/xxxx/xxxxxx
OUTPUT generate_afpd_conf.py:
if afp.afp_srv_bindip:
cf_contents.append("\tafp listen = %s\n" % ' '.join(afp.afp_srv_bindip))
cf_contents.append("\tmax connections = %s\n" % afp.afp_srv_connections_limit)
cf_contents.append("\tmimic model = RackMac\n")
cf_contents.append("\tvol charset = UTF8-MAC\n")
if afp.afp_srv_dbpath:
cf_contents.append("\tvol dbnest = no\n")
cf_contents.append("\tvol dbpath = %s\n" % afp.afp_srv_dbpath)
else:
cf_contents.append("\tvol dbnest = yes\n")
if afp.afp_srv_global_aux:
cf_contents.append("\t%s" % afp.afp_srv_global_aux.encode('utf8'))
cf_contents.append("\n")
Since some time I'm facing with an annoying issue: AFP does'nt show volume content properly, i mean there are files and folder in wrong place and if i check in ssh everything is fine.
Let's skip the main question related to the reasons why i'm using AFP .... :(
I googled a bit and only found this http://www.nicksherlock.com/2014/01/freenas-zfs-afp-filesharing-rsync-bad-idea/ which is extremely helpful.
It is reasonable figure out the issue is caused by non UTF8-MAC Charset generated by /usr/local/libexec/nas/generate_afpd_conf.py.
after modifying the generate_afpd_conf.py, I haven't seen any improvement regarding the main issue and
if I check the output of /usr/local/etc/afp.conf there are no differences.
Any Help ??? Thanks
[Global]
uam list = uams_dhx.so uams_dhx2.so uams_gss.so
afp listen = xx.xx.xx.xx
max connections = 50
mimic model = RackMac
vol dbnest = no
vol dbpath = /mnt/xxxx/xxxxxx
OUTPUT generate_afpd_conf.py:
if afp.afp_srv_bindip:
cf_contents.append("\tafp listen = %s\n" % ' '.join(afp.afp_srv_bindip))
cf_contents.append("\tmax connections = %s\n" % afp.afp_srv_connections_limit)
cf_contents.append("\tmimic model = RackMac\n")
cf_contents.append("\tvol charset = UTF8-MAC\n")
if afp.afp_srv_dbpath:
cf_contents.append("\tvol dbnest = no\n")
cf_contents.append("\tvol dbpath = %s\n" % afp.afp_srv_dbpath)
else:
cf_contents.append("\tvol dbnest = yes\n")
if afp.afp_srv_global_aux:
cf_contents.append("\t%s" % afp.afp_srv_global_aux.encode('utf8'))
cf_contents.append("\n")