we want to change files on our NetApp file server, and on every change of these files - a Debian machine duplicates the files to two other shares.
Because of the duplication method we're using lsync, we need to mount the Samba share (of the NetApp storage) and re-share it with Samba, and we are doing all the changes from the share of the Debian machine instead of the NetApp.
The problem is that sometimes at some tree levels we see the folders as files instead of folders.
For example the tree looks like this:
/ --fol1 +--fol5 +--fol6 --fol2 +--fol3 +--fol4  All the folders in the fol4/fol6 level, no matter what is their parent, looks like it is a file.
NOTE: From the Debian system all looks fine, the problem is only noticeable on the windows machines that see the Samba share on the Debian machine.
Some idea how to solve the problem?
the smb.conf file:
guest account = nobody map to guest = bad user disable netbios = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=242144 strict sync = no acl check permissions = no oplocks = False level2oplocks = False sync always = no [reshare] comment =reshare the netapp with debian to able to see the file change events path = /netapp/ hosts allow =host1;host2; writable = yes guest ok = yes force user = user1; workgroup = SERVERS server string = %h server dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes